-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.postgres.yml
More file actions
41 lines (38 loc) · 1.23 KB
/
docker-compose.postgres.yml
File metadata and controls
41 lines (38 loc) · 1.23 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
services:
incidentrelay:
environment:
INCIDENTRELAY_WEB_WORKERS: "4"
volumes:
- ./docker/incidentrelay.postgres.conf:/etc/incidentrelay/incidentrelay.conf:ro
- incidentrelay-logs:/var/log/incidentrelay
- ./custom_voice_providers:/usr/local/lib/incidentrelay/voice_providers:ro
depends_on:
postgres:
condition: service_healthy
incidentrelay-scheduler:
volumes:
- ./docker/incidentrelay.postgres.conf:/etc/incidentrelay/incidentrelay.conf:ro
- incidentrelay-logs:/var/log/incidentrelay
- ./custom_voice_providers:/usr/local/lib/incidentrelay/voice_providers:ro
depends_on:
incidentrelay:
condition: service_healthy
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
container_name: incidentrelay-postgres
restart: unless-stopped
environment:
POSTGRES_DB: incidentrelay
POSTGRES_USER: incidentrelay
POSTGRES_PASSWORD: incidentrelay-change-me
volumes:
- incidentrelay-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U incidentrelay -d incidentrelay"]
interval: 10s
timeout: 5s
retries: 5
volumes:
incidentrelay-postgres: