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:
parent
4b78c82b35
commit
848c8c7ee8
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ services:
|
|||
build: .
|
||||
image: camptickets:latest
|
||||
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:
|
||||
# Container always listens on 8080 internally; the host mapping below is
|
||||
# what nginx proxies to. Keep this fixed regardless of .env PORT.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue