-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (81 loc) · 2.06 KB
/
docker-compose.yml
File metadata and controls
86 lines (81 loc) · 2.06 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: opentoggl-self-hosted
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: opentoggl
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${OPENTOGGL_POSTGRES_PASSWORD:-postgres}
networks: [internal]
volumes:
- opentoggl-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d opentoggl"]
interval: 5s
timeout: 3s
retries: 20
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
redis:
image: redis:8-alpine
command:
[
"redis-server",
"--save",
"",
"--appendonly",
"no",
"--requirepass",
"${OPENTOGGL_REDIS_PASSWORD:-opentoggl}",
]
environment:
REDISCLI_AUTH: ${OPENTOGGL_REDIS_PASSWORD:-opentoggl}
networks: [internal]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
opentoggl:
image: correctroad/opentoggl:latest
environment:
OPENTOGGL_SERVICE_NAME: opentoggl
PORT: "8080"
DATABASE_URL: postgres://postgres:${OPENTOGGL_POSTGRES_PASSWORD:-postgres}@postgres:5432/opentoggl?sslmode=disable
REDIS_URL: redis://:${OPENTOGGL_REDIS_PASSWORD:-opentoggl}@redis:6379/0
OPENTOGGL_FILESTORE_NAMESPACE: opentoggl
OPENTOGGL_JOBS_QUEUE_NAME: default
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
networks: [internal]
ports:
- "${OPENTOGGL_PORT:-8080}:8080"
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8080/readyz"]
interval: 5s
timeout: 3s
retries: 20
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
restart: unless-stopped
networks:
internal:
driver: bridge
volumes:
opentoggl-postgres-data: