-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 895 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 895 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
services:
frontend:
image: jiwonjoung/chartmetric-assignment:frontend
ports:
- '3000:3000'
depends_on:
- backend
environment:
- NEXT_PUBLIC_API_URL=http://localhost:5001
volumes:
- ./frontend:/app
- /app/node_modules
backend:
image: jiwonjoung/chartmetric-assignment:backend
ports:
- '5001:5000'
depends_on:
- db
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=chartmetric
volumes:
- ./backend:/app
- /app/node_modules
db:
image: jiwonjoung/chartmetric-assignment:database
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data: