-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·78 lines (72 loc) · 1.77 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
76
77
78
version: "3.5"
networks:
web:
driver: bridge
ipam:
config:
- subnet: 10.8.0.0/16
services:
nginx:
build: ./.docker/nginx
restart: unless-stopped
container_name: app_nginx
working_dir: /app
volumes:
- .:/app
- ./.docker/nginx/configs/default.conf:/etc/nginx/conf.d/default.conf
- ./.docker/nginx/configs/map.conf:/etc/nginx/conf.d/map.conf
- ./.docker/nginx/configs/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/configs/php.conf:/etc/nginx/php.conf
ports:
- "80:80"
- "443:443"
expose:
- '80'
command: nginx -g 'daemon off;'
depends_on:
- php56
- php74
- php81
links:
- php56
- php74
- php81
networks:
web:
ipv4_address: 10.8.0.2
php56:
build: ./.docker/php56
restart: unless-stopped
container_name: app_php56
working_dir: /app
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/app
- ./.docker/php56/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
networks:
web:
ipv4_address: 10.8.0.3
php74:
build: ./.docker/php74
restart: unless-stopped
container_name: app_php74
working_dir: /app
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/app
- ./.docker/php74/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
networks:
web:
ipv4_address: 10.8.0.4
php81:
build: ./.docker/php81
restart: unless-stopped
container_name: app_php81
working_dir: /app
volumes:
- /etc/localtime:/etc/localtime:ro
- .:/app
- ./.docker/php81/php-ini-overrides.ini:/usr/local/etc/php/conf.d/99-overrides.ini
networks:
web:
ipv4_address: 10.8.0.5