-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 2.23 KB
/
docker-compose.yml
File metadata and controls
70 lines (68 loc) · 2.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
incidentrelay:
image: roxywi/incidentrelay:latest
build:
context: docker
dockerfile: Dockerfile
container_name: incidentrelay
restart: unless-stopped
environment:
INCEDENTRELAY_CONFIG_FILE: /etc/incidentrelay/incidentrelay.conf
INCIDENTRELAY_SERVICE: web
INCIDENTRELAY_RUN_MIGRATIONS: "1"
INCIDENTRELAY_PORT: "8080"
INCIDENTRELAY_WEB_WORKERS: "1"
INCIDENTRELAY_WEB_THREADS: "4"
INCIDENTRELAY_WEB_TIMEOUT: "120"
ports:
- "8080:8080"
volumes:
- incidentrelay-data:/var/lib/incidentrelay
- incidentrelay-logs:/var/log/incidentrelay
- ./custom_voice_providers:/usr/local/lib/incidentrelay/voice_providers:ro
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:8080/api/health || curl -fsS http://127.0.0.1:8080/login >/dev/null"]
interval: 30s
timeout: 5s
retries: 5
start_period: 30s
incidentrelay-scheduler:
image: roxywi/incidentrelay:latest
build:
context: docker
dockerfile: Dockerfile
container_name: incidentrelay-scheduler
restart: unless-stopped
environment:
INCEDENTRELAY_CONFIG_FILE: /etc/incidentrelay/incidentrelay.conf
INCIDENTRELAY_SERVICE: scheduler
INCIDENTRELAY_RUN_MIGRATIONS: "0"
volumes:
- incidentrelay-data:/var/lib/incidentrelay
- incidentrelay-logs:/var/log/incidentrelay
- ./custom_voice_providers:/usr/local/lib/incidentrelay/voice_providers:ro
depends_on:
incidentrelay:
condition: service_healthy
incidentrelay-telegram:
image: roxywi/incidentrelay:latest
build:
context: docker
dockerfile: Dockerfile
container_name: incidentrelay-telegram
restart: unless-stopped
environment:
INCEDENTRELAY_CONFIG_FILE: /etc/incidentrelay/incidentrelay.conf
INCIDENTRELAY_SERVICE: telegram
INCIDENTRELAY_RUN_MIGRATIONS: "0"
PYTHONUNBUFFERED: "1"
volumes:
- incidentrelay-data:/var/lib/incidentrelay
- incidentrelay-logs:/var/log/incidentrelay
- ./custom_voice_providers:/usr/local/lib/incidentrelay/voice_providers:ro
depends_on:
incidentrelay:
condition: service_healthy
volumes:
incidentrelay-data:
incidentrelay-logs: