-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·53 lines (53 loc) · 1.53 KB
/
docker-compose.yml
File metadata and controls
executable file
·53 lines (53 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "3.4"
services:
mysql:
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
restart: always
env_file:
- docker.env
volumes:
- ${MYSQL_VOLUME:-./data/mysql}:/var/lib/mysql
nginx:
image: 'nginx:1.20'
ports:
- '80:80'
- '443:443'
restart: always
volumes:
- ${ROOT_DIR:-.}/:/var/www
- ${BUILD_CONTEXT:-.}/docker-images/nginx-extended/default.conf:/etc/nginx/conf.d/default.conf
- ${BUILD_CONTEXT:-.}/docker-images/nginx-extended/ssl/localhost.crt:/etc/nginx/localhost.crt
- ${BUILD_CONTEXT:-.}/docker-images/nginx-extended/ssl/localhost.key:/etc/nginx/localhost.key
php-fpm:
build:
context: .
dockerfile: ./docker-images/php-extended/Dockerfile
image: "php-fpm"
env_file:
- docker.env
restart: always
volumes:
- ${BUILD_CONTEXT:-.}/docker-images/php-extended/php.ini:/usr/local/etc/php/conf.d/custom.ini
- ${ROOT_DIR:-.}/:/var/www
depends_on:
- mysql
- nginx
command: [ "php-fpm" ]
redis:
image: bitnami/redis:latest
user: root
env_file:
- docker.env
volumes:
- ${REDIS_VOLUME:-./data/redis}:/bitnami
mongodb:
image: mongo:latest
ports:
- '27017:27017'
pma:
image: 'phpmyadmin/phpmyadmin:latest'
ports:
- '8090:80'
env_file:
- docker.env