Feature/107 compose required env #108

Merged
bermudalamb merged 2 commits from feature/107-compose-required-env into main 2026-08-21 17:39:30 -05:00
Showing only changes of commit 0710cccac1 - Show all commits
+16
View File
@@ -37,6 +37,9 @@
# QA_SMTP_USER — Brevo SMTP login. Named QA_ for the same reason as the # QA_SMTP_USER — Brevo SMTP login. Named QA_ for the same reason as the
# QA_SMTP_PASSWORD database password: pasting production's variables in here # QA_SMTP_PASSWORD database password: pasting production's variables in here
# QA_SMTP_FROM must not silently work. # QA_SMTP_FROM must not silently work.
# ADMIN_GATE_SECRET — the shared secret Nginx Proxy Manager injects as the
# X-Admin-Gate header on the gated location. Both sides must
# hold the same value or the admin API returns 403. See #63.
services: services:
redefined-designs-qa: redefined-designs-qa:
@@ -98,6 +101,19 @@ services:
- SITE_CURRENCY=USD - SITE_CURRENCY=USD
- RESERVATION_MINUTES=15 - RESERVATION_MINUTES=15
- PUBLIC_URL=${PUBLIC_URL} - PUBLIC_URL=${PUBLIC_URL}
# Required since #64, and previously inherited from the code's fallback —
# which is exactly what that change set out to stop. Hardcoded rather than
# taken from a stack variable because it is not a secret and because it
# has to match the right-hand side of the volume mapping below; splitting
# it across two files is how they drift apart.
- UPLOADS_DIR=/app/uploads
# Interpolated from the stack environment so the secret itself never
# enters the repository. Note that setting it in Portainer alone is not
# enough: stack variables are substituted into this file, not handed to
# the container, so a variable with no line here never reaches the app.
- ADMIN_GATE_SECRET=${ADMIN_GATE_SECRET}
volumes: volumes:
# Separate uploads directory. Sharing production's would let a QA run # Separate uploads directory. Sharing production's would let a QA run
# write into, and a QA teardown delete, real product images. # write into, and a QA teardown delete, real product images.