-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 2.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (65 loc) · 2.04 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
# Local dev infra. Primary datastore: Postgres — the message table is the queue,
# no broker (RFC 0001 / RFC 0003). Redis is added purely as a lightweight lock
# store (the harness per-project run lock); the worker degrades open if it is down.
services:
postgres:
image: postgres:17
environment:
POSTGRES_USER: quantumbyte
POSTGRES_PASSWORD: quantumbyte
POSTGRES_DB: quantumbyte
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quantumbyte"]
interval: 5s
timeout: 5s
retries: 5
# Lock store for the worker's harness per-project run lock (redis_lock.py).
# NOT a broker — coordination still flows through Postgres (RFC 0003). Set the
# worker's REDIS_URL to redis://localhost:6379/0.
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# S3-compatible object store for agent-generated assets (logos, images). The
# worker uploads via aioboto3; the bucket is public-read so <img src> works.
minio:
image: minio/minio:latest
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: quantumbyte
MINIO_ROOT_PASSWORD: quantumbyte
ports:
- "9000:9000" # S3 API
- "9001:9001" # web console
volumes:
- miniodata:/data
healthcheck:
test: ["CMD-SHELL", "mc ready local || exit 1"]
interval: 5s
timeout: 5s
retries: 5
# One-shot: create the bucket and make it public-read, then exit.
minio-init:
image: minio/mc:latest
depends_on:
minio:
condition: service_started
entrypoint: >
/bin/sh -c "
until mc alias set local http://minio:9000 quantumbyte quantumbyte; do sleep 1; done;
mc mb --ignore-existing local/qb-assets;
mc anonymous set download local/qb-assets;
echo 'minio bucket qb-assets ready (public-read)';
"
volumes:
pgdata:
miniodata: