gabriel / musehub public
docker-compose.override.yml yaml
95 lines 2.9 KB
Raw
sha256:0997d6250ae6476362f6fe2025af7789f46d03df3e9f34356d5e8ee79b201923 fix(issues): use issue number as pagination cursor, not cre… Sonnet 4.6 patch 6 days ago
1 # Development overrides — bind-mount source dirs so changes are reflected
2 # immediately without rebuilding the image.
3 #
4 # Active automatically when you run `docker compose` from this directory.
5 # Production deployments use docker-compose.yml alone (no override).
6
7 networks:
8 musehub-internal:
9
10 volumes:
11 minio_data:
12
13 services:
14 minio:
15 image: minio/minio:latest
16 container_name: musehub_minio
17 command: server /data --console-address ":9001"
18 environment:
19 MINIO_ROOT_USER: minioadmin
20 MINIO_ROOT_PASSWORD: minioadmin
21 MINIO_SERVER_URL: "http://localhost:9000"
22 volumes:
23 - minio_data:/data
24 ports:
25 - "127.0.0.1:9000:9000"
26 - "127.0.0.1:9001:9001"
27 healthcheck:
28 test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
29 interval: 5s
30 timeout: 5s
31 retries: 10
32 networks:
33 - musehub-internal
34
35 createbuckets:
36 image: minio/mc:latest
37 container_name: musehub_minio_init
38 depends_on:
39 minio:
40 condition: service_healthy
41 entrypoint: >
42 /bin/sh -c "
43 mc alias set local http://minio:9000 minioadmin minioadmin &&
44 mc mb --ignore-existing local/muse-objects &&
45 echo 'bucket ready'
46 "
47 networks:
48 - musehub-internal
49 restart: "no"
50
51 musehub:
52 environment:
53 DEBUG: "true"
54 UVICORN_WORKERS: "1"
55 TEST_DATABASE_URL: "postgresql+asyncpg://musehub:musehub@postgres:5432/musehub_test"
56 BLOB_STORAGE_BUCKET: "muse-objects"
57 BLOB_STORAGE_ENDPOINT: "http://minio:9000"
58 BLOB_STORAGE_PUBLIC_ENDPOINT: "http://localhost:9000"
59 BLOB_STORAGE_ACCESS_KEY_ID: "minioadmin"
60 BLOB_STORAGE_SECRET_ACCESS_KEY: "minioadmin"
61 BLOB_STORAGE_REGION: "us-east-1"
62 depends_on:
63 createbuckets:
64 condition: service_completed_successfully
65 volumes:
66 - ./musehub:/app/musehub
67 - ./tests:/app/tests
68 - ./tools:/app/tools
69 - ./scripts:/app/scripts
70 - ./alembic:/app/alembic
71 # Muse VCS engine — bind-mounted so entrypoint.sh can pip install it.
72 - ../muse:/muse:ro
73 # Contracts package — bind-mounted read-only so entrypoint.sh can pip install it.
74 - ../contracts:/src/contracts:ro
75 - ./deploy:/app/deploy:ro
76 # Root-level config files — needed by infra/security tests that parse them.
77 - ./Dockerfile:/app/Dockerfile:ro
78 - ./docker-compose.yml:/app/docker-compose.yml:ro
79 - ./docker-compose.override.yml:/app/docker-compose.override.yml:ro
80 - ./.env.example:/app/.env.example:ro
81 - ./.museignore:/app/.museignore:ro
82
83 worker:
84 environment:
85 DEBUG: "false"
86 WORKER_POLL_INTERVAL: "1.0"
87 BLOB_STORAGE_BUCKET: "muse-objects"
88 BLOB_STORAGE_ENDPOINT: "http://minio:9000"
89 BLOB_STORAGE_ACCESS_KEY_ID: "minioadmin"
90 BLOB_STORAGE_SECRET_ACCESS_KEY: "minioadmin"
91 BLOB_STORAGE_REGION: "us-east-1"
92 volumes:
93 - ./musehub:/app/musehub
94 - ../muse:/muse:ro
95 - ../contracts:/src/contracts:ro
File History 1 commit
sha256:0997d6250ae6476362f6fe2025af7789f46d03df3e9f34356d5e8ee79b201923 fix(issues): use issue number as pagination cursor, not cre… Sonnet 4.6 patch 6 days ago