generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (42 loc) · 909 Bytes
/
docker-compose.yaml
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
version: "3.9"
services:
app:
build: .
image: "kpi-dashboard"
container_name: "kpi-dashboard"
environment:
AUTH_ENABLED: false
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: admin
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
APP_SECRET_KEY: dev
FLASK_DEBUG: true
API_KEY: test
ports:
- "4567:4567"
depends_on:
postgres:
condition: service_healthy
restart: true
networks:
- kpi-dashboard
postgres:
image: postgres:14-alpine
container_name: "postgres"
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=admin
- POSTGRES_USER=admin
- POSTGRES_DB=admin
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin" ]
interval: 10s
timeout: 5s
retries: 5
networks:
- kpi-dashboard
networks:
kpi-dashboard: