-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.12 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
services:
db:
build:
context: ./database
dockerfile: Dockerfile
container_name: getactive-db
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ppassword"]
interval: 10s
timeout: 5s
retries: 5
networks:
- backend-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: getactive-backend
depends_on:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3232/v1/health"]
interval: 10s
timeout: 5s
retries: 5
networks:
- backend-network
- frontend-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- NODE_ENV=production
container_name: getactive-frontend
depends_on:
- backend
ports:
- "80:80"
networks:
- frontend-network
networks:
frontend-network:
driver: bridge
backend-network:
driver: bridge
volumes:
mysql_data: