-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 863 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
43 lines (40 loc) · 863 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:
backend:
build: ./back_end
volumes:
- ./back_end:/app
ports:
- "8080:8080"
depends_on:
- postgres
environment:
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=taskdb
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/swagger/index.html"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build: ./front_end
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
environment:
- BACKEND_URL=http://backend:8080
postgres:
image: postgres:13
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: taskdb
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: