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:
Felix Eckhofer 2021-08-26 10:24:35 +02:00 committed by GitHub
parent 77a5a58cb9
commit b70b44490b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ services:
networks: networks:
- internal - internal
environment: environment:
- POSTGRES_PASSWORD=${PG_PASS:-thisisnotagoodpassword} - POSTGRES_PASSWORD=${PG_PASS:?database password required}
- POSTGRES_USER=${PG_USER:-authentik} - POSTGRES_USER=${PG_USER:-authentik}
- POSTGRES_DB=${PG_DB:-authentik} - POSTGRES_DB=${PG_DB:-authentik}
env_file: env_file: