read.markets/docker-compose.override.yml

18 lines
800 B
YAML
Raw Normal View History

# Local-dev overlay. Auto-loaded by `docker compose up` (no -f flags needed),
# IGNORED on the VPS because prod uses explicit `-f docker-compose.yml -f
# docker-compose.prod.yml`. Keep dev-only conveniences here so the base
# `docker-compose.yml` stays prod-ready.
services:
app:
# Dev: mount the source over the image's copy so edits on the host
# land in the container without a rebuild; `--reload` restarts uvicorn
# when a file changes. Prod bakes the code into the image (Dockerfile)
# and uses the plain command from docker-compose.yml.
command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000",
"--workers", "1", "--reload", "--reload-dir", "/app/app"]
volumes:
- ./app:/app/app
ports:
- "${CASSANDRA_PORT:-8000}:8000"