# Production overlay. Applied on the VPS with: # # docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d # # Drops the host port binding entirely and joins the `intranet` external # Docker network so a front-side proxy (Nginx Proxy Manager) on the same # network can reach the container directly. The app listens on port 80 # inside the container so NPM upstreams are uniform across services # (always `:80`). # # The local-dev compose (just `docker-compose.yml` alone) still binds to # the host port from `.env` / CASSANDRA_PORT — unchanged. services: app: command: ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80", "--workers", "1"] expose: - "80" networks: - default - intranet networks: intranet: external: true