-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
58 lines (52 loc) · 1.36 KB
/
docker-compose.yml
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
services:
backend:
image: ghcr.io/vatger/atciss/atciss-backend
command: serve
environment:
ATCISS_REDIS_URL: redis://redis
depends_on:
db:
condition: service_healthy
worker:
image: ghcr.io/vatger/atciss/atciss-backend
command: worker
environment:
ATCISS_REDIS_URL: redis://redis
depends_on:
redis:
condition: service_healthy
db:
condition: service_healthy
scheduler:
image: ghcr.io/vatger/atciss/atciss-backend
command: scheduler
restart: always
environment:
ATCISS_REDIS_URL: redis://redis
depends_on:
redis:
condition: service_healthy
db:
image: postgis/postgis:16-3.4-alpine@sha256:f785413fbe19835b9fd7db0ec3bcb215de2b4f87ffaaadd01e2e8f44d9cefbf1
volumes:
- atciss-db-data:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
healthcheck:
test: [CMD, su, postgres, -c, pg_isready]
interval: 10s
timeout: 3s
retries: 3
redis:
# TODO: use valkey/valkey:8-alpine
image: redis:alpine@sha256:c35af3bbcef51a62c8bae5a9a563c6f1b60d7ebaea4cb5a3ccbcc157580ae098
volumes:
- atciss-redis-data:/data
healthcheck:
test: [CMD, redis-cli, ping]
interval: 10s
timeout: 3s
retries: 3
volumes:
atciss-db-data:
atciss-redis-data: