-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
65 lines (59 loc) · 1.28 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
65 lines (59 loc) · 1.28 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
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.8'
services:
mysql:
image: mysql:8.0
container_name: csapp_mysql_prod
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS}
MYSQL_DATABASE: ${DB_NAME}
volumes:
- mysql_data_prod:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
networks:
- csapp_network_prod
email_service:
build:
context: ./apps/email
dockerfile: Dockerfile
container_name: csapp_email_prod
env_file:
- .env.production
networks:
- csapp_network_prod
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile
container_name: csapp_backend_prod
ports:
- "8080:8080"
env_file:
- .env.production
environment:
DB_HOST: mysql
EMAIL_API_URL: http://email_service:9090
depends_on:
mysql:
condition: service_healthy
networks:
- csapp_network_prod
frontend:
build:
context: ./apps/frontend
dockerfile: Dockerfile
target: production
container_name: csapp_frontend_prod
ports:
- "80:80"
env_file:
- .env.production
networks:
- csapp_network_prod
networks:
csapp_network_prod:
driver: bridge
volumes:
mysql_data_prod: