-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (81 loc) · 1.89 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
79
80
81
82
83
84
85
version: '3.7'
services:
FPM:
hostname: docker-php-fpm
build:
context: ./Dockerfiles/php-fpm
image: cscolabear/7.3-fpm:0.1
ports:
- 9000:9000
volumes:
- ${VOLUMES_DRIVER}:/var/www:delegated
- ./Dockerfiles/php-fpm/php.ini:/usr/local/etc/php/php.ini:ro
- ./Dockerfiles/php-fpm/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
memory: 128M
restart_policy:
condition: on-failure
extra_hosts:
- "localhost:172.16.1.50"
# - "any-your-project-domain:172.16.1.50"
networks:
app_net:
ipv4_address: 172.16.1.40
NGINX:
hostname: docker-nginx
build:
context: ./Dockerfiles/nginx
image: cscolabear/nginx:0.1-brotli
ports:
- 80:80
- 443:443
volumes:
- ${VOLUMES_DRIVER}:/var/www:delegated
- ./Logs:/var/log/nginx:delegated
- ./Dockerfiles/nginx/sites-enabled:/etc/nginx/sites-enabled:ro
depends_on:
- FPM
deploy:
resources:
limits:
cpus: '0.10'
memory: 30M
reservations:
memory: 10M
restart_policy:
condition: on-failure
networks:
app_net:
ipv4_address: 172.16.1.50
# aliases:
# - any-your-project-domain
# - local.project
WORKSPACE:
hostname: docker-workspace
build:
context: ./Dockerfiles/workspace
image: cscolabear/workspace:0.2
ports:
- 3000:3000
volumes:
- ${VOLUMES_DRIVER}:/var/www
depends_on:
- FPM
restart: on-failure
extra_hosts:
- "localhost:172.16.1.50"
# - "any-your-project-domain:172.16.1.50"
networks:
app_net:
ipv4_address: 172.16.1.30
networks:
app_net:
driver: "bridge"
ipam:
config:
- subnet: 172.16.1.0/16