-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathcompose.yml
More file actions
95 lines (89 loc) · 2.14 KB
/
Copy pathcompose.yml
File metadata and controls
95 lines (89 loc) · 2.14 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
87
88
89
90
91
92
93
94
95
services:
web:
image: ghcr.io/zeecka/aperisolve:latest
#build: .
container_name: aperisolve-web
restart: always
ports:
- "${WEB_APP_PORT:-5000}:5000"
volumes:
- apresults:/app/aperisolve/results
depends_on:
postgres:
condition: service_healthy
initdb:
condition: service_completed_successfully
redis:
condition: service_started
worker:
condition: service_started
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "dd if=/dev/urandom of=/tmp/healthcheck.png bs=1 count=1000000 && curl -X POST -F 'image=@/tmp/healthcheck.png' http://localhost:5000/upload -s -o /dev/null -w '%{http_code}' | grep -q 200"]
interval: 3600s
timeout: 30s
retries: 3
start_period: 900s
worker:
image: ghcr.io/zeecka/aperisolve:latest
#build: .
container_name: aperisolve-worker
restart: always
command: rq worker default --url redis://redis:6379/0
volumes:
- apresults:/app/aperisolve/results
depends_on:
postgres:
condition: service_healthy
initdb:
condition: service_completed_successfully
redis:
condition: service_started
env_file:
- .env
initdb:
image: ghcr.io/zeecka/aperisolve:latest
#build: .
container_name: aperisolve-initdb
command: python -m aperisolve.utils.init_db
volumes:
- apresults:/app/aperisolve/results
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
restart: "no"
postgres:
image: postgres:18
container_name: postgres
restart: always
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U aperiuser -d aperisolve"]
interval: 5s
timeout: 5s
retries: 5
env_file:
- .env
redis:
image: redis:7
container_name: redis
restart: always
env_file:
- .env
rqdashboard:
image: eoranged/rq-dashboard
container_name: rq-dashboard
restart: always
ports:
- "9181:9181"
depends_on:
- redis
env_file:
- .env
volumes:
apresults:
pgdata: