fix(staging): add APP_KEY_FILE environment variable to scheduler and queue-worker
All checks were successful
Test Runner / test-basic (push) Successful in 7s
Test Runner / test-php (push) Successful in 7s
Deploy Application / deploy (push) Successful in 1m46s

The scheduler and queue-worker containers were crashing with
RequiredEnvironmentVariableException because the APP_KEY_FILE
environment variable was not set, even though the app_key secret
was mounted. The Framework's Environment class needs the *_FILE
pattern to read Docker Secrets.
This commit is contained in:
2025-11-25 22:45:23 +01:00
parent 22fd89b013
commit 7f7029ae2a

View File

@@ -397,6 +397,7 @@ services:
- DB_PASSWORD=${DB_PASSWORD}
# Use Docker Secrets via *_FILE pattern (Framework supports this automatically)
- DB_PASSWORD_FILE=/run/secrets/db_user_password
- APP_KEY_FILE=/run/secrets/app_key
# Redis
- REDIS_HOST=redis
- REDIS_PORT=6379
@@ -452,6 +453,7 @@ services:
- DB_PASSWORD=${DB_PASSWORD}
# Use Docker Secrets via *_FILE pattern (Framework supports this automatically)
- DB_PASSWORD_FILE=/run/secrets/db_user_password
- APP_KEY_FILE=/run/secrets/app_key
# Redis
- REDIS_HOST=redis
- REDIS_PORT=6379