fix: Pass admin bootstrap env vars to API container

ADMIN_EMAIL and ADMIN_PASSWORD were in the .env file but not
forwarded to the API container — bootstrap_admin() couldn't
read them, so no initial user was created. Login returned 400
on every attempt because no user existed in the database.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell
2026-02-15 01:45:20 -05:00
parent c4fd4df513
commit 0360fcf2e2

View File

@@ -46,6 +46,10 @@ services:
SMTP_PASSWORD: ${SMTP_PASSWORD}
SMTP_FROM: ${SMTP_FROM:-noreply@corrosionmgmt.com}
FRONTEND_URL: ${FRONTEND_URL:-https://panel.corrosionmgmt.com}
ADMIN_EMAIL: ${ADMIN_EMAIL}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ADMIN_USERNAME: ${ADMIN_USERNAME:-Commander}
ADMIN_LICENSE_KEY: ${ADMIN_LICENSE_KEY:-}
RUST_LOG: corrosion_api=info,tower_http=info
volumes:
- map_data:/data/maps