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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user