root: Require PG_PASS to be set (#1303)
This raises an error when PG_PASS is not set. docker-compose recently changed the way .env files are searched for (see for example https://github.com/docker/compose/issues/8347) and with the current setup, authentik will not work anyway without a password set.
This commit is contained in:
parent
77a5a58cb9
commit
b70b44490b
|
@ -10,7 +10,7 @@ services:
|
|||
networks:
|
||||
- internal
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=${PG_PASS:-thisisnotagoodpassword}
|
||||
- POSTGRES_PASSWORD=${PG_PASS:?database password required}
|
||||
- POSTGRES_USER=${PG_USER:-authentik}
|
||||
- POSTGRES_DB=${PG_DB:-authentik}
|
||||
env_file:
|
||||
|
|
Reference in New Issue