Files
stpweb/docker-compose.dev.yml
T
adamfandClaude Opus 5.5 4530cb8dc4
Test and deploy / test (push) Successful in 28s
Test and deploy / deploy (push) Successful in 31s
Trim comments to the non-obvious why
Drop narration, history and restated-code comments across the repo,
keep short ones for security boundaries, upstream quirks and ordering
constraints, and record the convention in CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:49:03 +00:00

41 lines
1.4 KiB
YAML

# Dev overrides, layered on docker-compose.yml. Serves http://localhost (and
# https with Caddy's local CA).
services:
vue:
command: ["npm", "run", "dev"]
volumes:
- ./vue:/app
# Masks the bind mount so the image's node_modules survive.
- /app/node_modules
environment:
- NODE_ENV=development
backend:
environment:
# Spotify needs an exact redirect match, registered in the app.
- SPOTIFY_REDIRECT_URI=https://localhost/api/spotify/callback
- GQL_PLAYGROUND=true
- GQL_INTROSPECTION=true
- DEV_MODE=true
# Dev only: seeds an admin with a known password.
- SEED_DB=true
caddy:
environment:
- CADDY_SITE=dev
python:
command: ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PYTHON_PORT:-8000} --root-path /py --reload"]
volumes:
- ./python/app:/app/app
# No hot reload in this image; use its own repo's `npm run dev` for that.
jobs:
environment:
- DEV_MODE=true
- SEED_DB=true
- GQL_PLAYGROUND=true
- GQL_INTROSPECTION=true
- MSGRAPH_REDIRECT_URI=https://localhost/jobs/api/email/callback
cloudflared:
# Never start: a dev stack on the tunnel would get real visitors.
profiles:
- disabled