-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·75 lines (71 loc) · 1.83 KB
/
docker-compose.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: '3.4'
services:
apache:
build: .docker/apache
container_name: apache
restart: always
ports:
- 443:443
volumes:
- .docker/apache/sites-enabled:/etc/apache2/sites-enabled
- .docker/apache/include:/etc/apache2/include
- .docker/certs:/etc/http-certs
- .:/var/www/
- .docker/data/log/apache:/var/log
depends_on:
- php-fpm
networks:
- app
# nginx:
# image: nginx:1.17.9
# container_name: nginx
# restart: always
# ports:
# - 80:80
# - 443:443
# volumes:
# - .docker/nginx/conf.d:/etc/nginx/conf.d/
# - .docker/certs:/etc/http-certs
# - .:/var/www/
# - .docker/data/log/nginx:/var/log
# depends_on:
# - php-fpm
# networks:
# - app
database:
image: mysql:8.0
container_name: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password --disable-log-bin
volumes:
- .docker/data/mysql:/var/lib/mysql
- .docker/data/log/mysql:/var/log
ports:
- 3306:3306
networks:
- app
php-fpm:
build: .docker/php/fpm
container_name: php-fpm
restart: always
volumes:
- .:/var/www
- .docker/data/log/fpm:/var/log
depends_on:
- php-cli
- database
networks:
- app
php-cli:
build: .docker/php/cli
container_name: php-cli
restart: always
volumes:
- .:/var/www
- .docker/data/log/cli:/var/log
depends_on:
- database
networks:
- app
networks:
app: