-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (76 loc) · 2.06 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (76 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
# This configuration does not include a processing node
# Which makes for faster setup times
version: '2.1'
volumes:
dbdata:
appmedia:
services:
db:
image: postgis/postgis:18-3.6-alpine
container_name: db
expose:
- "5432"
volumes:
- ${WO_DB_DIR}:/var/lib/postgresql:z
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
command: >
postgres
-c autovacuum_max_workers=6
-c autovacuum_naptime=15s
-c autovacuum_vacuum_threshold=25
-c autovacuum_vacuum_scale_factor=0.1
-c autovacuum_analyze_threshold=10
-c autovacuum_analyze_scale_factor=0.05
-c autovacuum_vacuum_cost_delay=10ms
-c autovacuum_vacuum_cost_limit=1000
restart: unless-stopped
oom_score_adj: -100
webapp:
build: .
container_name: webapp
entrypoint: /bin/bash -c "crond && chmod +x /webui/*.sh && /bin/bash -c \"/webui/wait-for-postgres.sh db /webui/wait-for-it.sh -t 0 broker:6379 -- /webui/start.sh\""
volumes:
- ${WO_MEDIA_DIR}:/webui/app/media:z
ports:
- "${WO_PORT}:8000"
depends_on:
- db
- broker
- worker
environment:
- PGPASSWORD=postgres
- WO_PORT
- WO_HOST
- WO_DEBUG
- WO_BROKER
- WO_DEV
- WO_DEV_WATCH_PLUGINS
- WO_SECRET_KEY
- WEB_CONCURRENCY
restart: unless-stopped
oom_score_adj: 0
broker:
image: valkey/valkey:9.1.0-alpine3.23
container_name: broker
restart: unless-stopped
oom_score_adj: -500
worker:
build: .
container_name: worker
entrypoint: /bin/bash -c "/webui/wait-for-postgres.sh db /webui/wait-for-it.sh -t 0 broker:6379 -- /webui/wait-for-it.sh -t 0 webapp:8000 -- /webui/worker.sh start"
volumes:
- ${WO_MEDIA_DIR}:/webui/app/media:z
depends_on:
- db
- broker
environment:
- PGPASSWORD=postgres
- WO_BROKER
- WO_DEBUG
- WO_SECRET_KEY
- WEB_CONCURRENCY
restart: unless-stopped
oom_score_adj: 250