Use registry image in docker-compose, add dev override
Build and Push Docker Image / test (push) Successful in 44s Details
Build and Push Docker Image / build (push) Successful in 1m11s Details

- 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:
Matt 2025-12-08 12:50:13 +01:00
parent d72a0c125b
commit 4dac6d7e4e
2 changed files with 16 additions and 10 deletions

View File

@ -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"

View File

@ -17,26 +17,19 @@ services:
retries: 5
api:
build: .
image: code.letsbe.solutions/letsbe/orchestrator:latest
container_name: orchestrator-api
restart: unless-stopped
# Bind only to localhost, and use 8100 externally
ports:
- "127.0.0.1:8100:8000"
environment:
DATABASE_URL: postgresql+asyncpg://orchestrator:orchestrator@db:5432/orchestrator
DEBUG: "false" # set false in prod
DEBUG: "false"
APP_NAME: "LetsBe Orchestrator"
ADMIN_API_KEY: "${ADMIN_API_KEY}" # Required for admin endpoints (token management)
# optionally, if your app supports it:
# BASE_URL: https://orchestrator.example.com
ADMIN_API_KEY: "${ADMIN_API_KEY}"
depends_on:
db:
condition: service_healthy
volumes:
- ./app:/app/app
- ./alembic:/app/alembic
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
volumes:
postgres_data: