compose: forward ADMIN_BOOTSTRAP_EMAIL and SITE_BASE_URL to the container
Portainer stack variables are substitution values for the compose file, not container environment. A var added to the stack and not listed here is silently absent at runtime.
This commit is contained in:
@@ -42,6 +42,10 @@ services:
|
|||||||
- NTFY_TOKEN=${NTFY_TOKEN}
|
- NTFY_TOKEN=${NTFY_TOKEN}
|
||||||
- ADMIN_TOKEN=${ADMIN_TOKEN}
|
- ADMIN_TOKEN=${ADMIN_TOKEN}
|
||||||
- EVENTS_FEED_URL=${EVENTS_FEED_URL}
|
- EVENTS_FEED_URL=${EVENTS_FEED_URL}
|
||||||
|
# P0 identity. Portainer stack env only reaches the container if it is
|
||||||
|
# forwarded here; adding it to the stack alone is not enough.
|
||||||
|
- ADMIN_BOOTSTRAP_EMAIL=${ADMIN_BOOTSTRAP_EMAIL}
|
||||||
|
- SITE_BASE_URL=${SITE_BASE_URL}
|
||||||
volumes:
|
volumes:
|
||||||
- /srv/scout-website/data:/data
|
- /srv/scout-website/data:/data
|
||||||
- /srv/scout-website/secrets/service_account.json:/app/service_account.json:ro
|
- /srv/scout-website/secrets/service_account.json:/app/service_account.json:ro
|
||||||
|
|||||||
Reference in New Issue
Block a user