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
|
||||
|
||||
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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue