-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (67 loc) · 1.83 KB
/
docker-compose.yaml
File metadata and controls
77 lines (67 loc) · 1.83 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
services:
zipzup:
build:
context: .
ports:
- "5000:5000"
depends_on:
redis:
condition: service_healthy
postgresql:
condition: service_healthy
environment:
POSTGRES_USER: zipzup
POSTGRES_PASSWORD: zipzup
POSTGRES_DB: zipzup
POSTGRES_HOST: postgresql
redis:
image: valkey/valkey:8.1.2-alpine3.22
healthcheck:
test: redis-cli ping || exit 1
interval: 1m30s
timeout: 30s
retries: 5
start_period: 1m
start_interval: 5s
selenium:
image: selenium/standalone-chromium
healthcheck:
test: 'curl -f http://localhost:4444/wd/hub/status || exit 1'
interval: 1m30s
timeout: 30s
retries: 5
start_period: 1m
start_interval: 5s
postgresql:
image: postgres:16-alpine
environment:
POSTGRES_USER: zipzup
POSTGRES_PASSWORD: zipzup
POSTGRES_DB: zipzup
healthcheck:
test: >-
pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
interval: 5s
start_interval: 5s
start_period: 5m
volumes:
- postgres_data:/var/lib/postgresql/data
worker:
build:
context: .
entrypoint: "/app/worker_entrypoint.sh"
user: root
environment:
POSTGRES_USER: zipzup
POSTGRES_PASSWORD: zipzup
POSTGRES_DB: zipzup
POSTGRES_HOST: postgresql
depends_on:
selenium:
condition: service_healthy
redis:
condition: service_healthy
postgresql:
condition: service_healthy
volumes:
postgres_data: {}