-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (43 loc) · 859 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (43 loc) · 859 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
services:
db:
image: postgres:15
environment:
POSTGRES_DB: facts_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- pg-data:/var/lib/postgresql/data
networks:
- app-network
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
api:
build: .
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
networks:
- app-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 10s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
networks:
- app-network
networks:
app-network:
volumes:
pg-data:
grafana-data: