Skip to content

Commit a1e5e62

Browse files
authored
set better security defaults in docker-compose.yml
Without `APP_DEBUG=false` or `APP_ENV=production`, this may lead to unwanted exposure of environment variables when a user hits an exception (or even a 404). With docker specifically, these environment variables also include the database credentials. This change will ensure this debugging functionality is not enabled by default.
1 parent fb11c2b commit a1e5e62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ services:
2828
- DB_PREFIX=chq_
2929
- APP_KEY=${APP_KEY:-null}
3030
- APP_LOG=errorlog
31+
- APP_ENV=production
32+
- APP_DEBUG=false
3133
- DEBUG=false
3234
depends_on:
3335
- postgres

0 commit comments

Comments
 (0)