Use registry image in docker-compose, add dev override
- docker-compose.yml now pulls from code.letsbe.solutions/letsbe/orchestrator:latest - docker-compose.override.yml for local dev (build, volumes, hot-reload) - Production: rename/remove override file to use registry image 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
d72a0c125b
commit
4dac6d7e4e
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Development overrides - automatically merged with docker-compose.yml
|
||||||
|
# For production, rename this file or use: docker compose -f docker-compose.yml up
|
||||||
|
|
||||||
|
services:
|
||||||
|
api:
|
||||||
|
build: .
|
||||||
|
image: orchestrator-dev
|
||||||
|
volumes:
|
||||||
|
- ./app:/app/app
|
||||||
|
- ./alembic:/app/alembic
|
||||||
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
||||||
|
environment:
|
||||||
|
DEBUG: "true"
|
||||||
|
|
@ -17,26 +17,19 @@ services:
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
||||||
api:
|
api:
|
||||||
build: .
|
image: code.letsbe.solutions/letsbe/orchestrator:latest
|
||||||
container_name: orchestrator-api
|
container_name: orchestrator-api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Bind only to localhost, and use 8100 externally
|
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8100:8000"
|
- "127.0.0.1:8100:8000"
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql+asyncpg://orchestrator:orchestrator@db:5432/orchestrator
|
DATABASE_URL: postgresql+asyncpg://orchestrator:orchestrator@db:5432/orchestrator
|
||||||
DEBUG: "false" # set false in prod
|
DEBUG: "false"
|
||||||
APP_NAME: "LetsBe Orchestrator"
|
APP_NAME: "LetsBe Orchestrator"
|
||||||
ADMIN_API_KEY: "${ADMIN_API_KEY}" # Required for admin endpoints (token management)
|
ADMIN_API_KEY: "${ADMIN_API_KEY}"
|
||||||
# optionally, if your app supports it:
|
|
||||||
# BASE_URL: https://orchestrator.example.com
|
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
|
||||||
- ./app:/app/app
|
|
||||||
- ./alembic:/app/alembic
|
|
||||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue