compose: read env from backend/.env (single source of truth)

Was ./.env, which required a manual copy from backend/.env and could go stale
(e.g. a changed PORTAL_PASSWORD not taking effect). Point env_file straight at
backend/.env so there's one file to edit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Hank 2026-07-13 03:53:44 +00:00
parent 4b78c82b35
commit 848c8c7ee8

View file

@ -3,7 +3,9 @@ services:
build: . build: .
image: camptickets:latest image: camptickets:latest
container_name: camptickets container_name: camptickets
env_file: .env # Single source of truth for secrets — edit backend/.env, then
# `docker compose up -d`. (Was ./.env; consolidated to avoid a stale copy.)
env_file: backend/.env
environment: environment:
# Container always listens on 8080 internally; the host mapping below is # Container always listens on 8080 internally; the host mapping below is
# what nginx proxies to. Keep this fixed regardless of .env PORT. # what nginx proxies to. Keep this fixed regardless of .env PORT.