-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
53 lines (50 loc) · 999 Bytes
/
docker-compose.prod.yml
File metadata and controls
53 lines (50 loc) · 999 Bytes
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.7'
services:
mysql-database:
container_name: mysql-database
image: mysql:5.7
ports:
- 3306:3306
env_file:
- ./app/.env.prod
expose:
- 3306
restart: on-failure
volumes:
- ./db/data:/var/lib/mysql
networks:
backend:
ipv4_address: 172.16.5.2
redis-database:
image: redis
container_name: redis-database
ports:
- 6379:6379
expose:
- 6379
restart: on-failure
networks:
backend:
ipv4_address: 172.16.5.3
nginx:
container_name: node-nginx-lb
build: ./nginx
ports:
- 80:80
- 443:443
volumes:
- /etc/letsencrypt:/etc/letsencrypt
- /var/www:/var/www
- ./nginx/log:/var/log/nginx
- ./nginx/conf.d:/etc/nginx/conf.d
restart: on-failure
networks:
backend:
ipv4_address: 172.16.5.4
networks:
backend:
driver: bridge
name: habitbread
ipam:
config:
- subnet: 172.16.5.0/16