fix(dev,resume): drop value-less env entries that blanked stack.env
A bare `- VAR` in `environment:` passes through Portainer's (empty) shell env and overrides the env_file value with nothing. BookStack's APP_KEY and DB_PASS, mariadb's MYSQL_* passwords, TZ, and minio_resume's OIDC client id/secret were all arriving empty; BookStack only worked via its persisted /config/www/.env. env_file already supplies every one of these, and the stack.env values were verified to match the live ones before removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
39b26e68d1
commit
5c8b108f2b
2 files changed
-9
No files matched your search
@@ -17,7 +17,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ
|
|
||||||
- DEFAULT_WORKSPACE=/workspace
|
- DEFAULT_WORKSPACE=/workspace
|
||||||
# Authentik forward_auth at the edge — local password auth disabled via config mount.
|
# Authentik forward_auth at the edge — local password auth disabled via config mount.
|
||||||
volumes:
|
volumes:
|
||||||
@@ -51,16 +50,13 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ
|
|
||||||
- APP_URL=https://docs.ginnoir.com
|
- APP_URL=https://docs.ginnoir.com
|
||||||
- APP_KEY
|
|
||||||
# Laravel prioritizes DATABASE_URL over DB_*; pin it to BookStack's own MariaDB
|
# Laravel prioritizes DATABASE_URL over DB_*; pin it to BookStack's own MariaDB
|
||||||
# so a stray DATABASE_URL in stack.env can never redirect it.
|
# so a stray DATABASE_URL in stack.env can never redirect it.
|
||||||
- DATABASE_URL=mysql://bookstack:bookstack_d3v_pass@mariadb_bookstack:3306/bookstack
|
- DATABASE_URL=mysql://bookstack:bookstack_d3v_pass@mariadb_bookstack:3306/bookstack
|
||||||
- DB_HOST=mariadb_bookstack
|
- DB_HOST=mariadb_bookstack
|
||||||
- DB_PORT=3306
|
- DB_PORT=3306
|
||||||
- DB_USER=bookstack
|
- DB_USER=bookstack
|
||||||
- DB_PASS
|
|
||||||
- DB_DATABASE=bookstack
|
- DB_DATABASE=bookstack
|
||||||
- AUTH_METHOD=oidc
|
- AUTH_METHOD=oidc
|
||||||
- AUTH_AUTO_INITIATE=false
|
- AUTH_AUTO_INITIATE=false
|
||||||
@@ -88,11 +84,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- PUID=1000
|
- PUID=1000
|
||||||
- PGID=1000
|
- PGID=1000
|
||||||
- TZ
|
|
||||||
- MYSQL_ROOT_PASSWORD
|
|
||||||
- MYSQL_DATABASE=bookstack
|
- MYSQL_DATABASE=bookstack
|
||||||
- MYSQL_USER=bookstack
|
- MYSQL_USER=bookstack
|
||||||
- MYSQL_PASSWORD
|
|
||||||
volumes:
|
volumes:
|
||||||
- /config/bookstack-db:/config
|
- /config/bookstack-db:/config
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- MINIO_BROWSER_REDIRECT_URL=https://minio.ginnoir.com
|
- MINIO_BROWSER_REDIRECT_URL=https://minio.ginnoir.com
|
||||||
- MINIO_IDENTITY_OPENID_CONFIG_URL=https://auth.ginnoir.com/application/o/minio/.well-known/openid-configuration
|
- MINIO_IDENTITY_OPENID_CONFIG_URL=https://auth.ginnoir.com/application/o/minio/.well-known/openid-configuration
|
||||||
- MINIO_IDENTITY_OPENID_CLIENT_ID
|
|
||||||
- MINIO_IDENTITY_OPENID_CLIENT_SECRET
|
|
||||||
- MINIO_IDENTITY_OPENID_SCOPES=openid,profile,email
|
- MINIO_IDENTITY_OPENID_SCOPES=openid,profile,email
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live || exit 1"]
|
test: ["CMD-SHELL", "curl -sf http://localhost:9000/minio/health/live || exit 1"]
|
||||||
|
|||||||
Reference in new issue
Block a user