diff --git a/docker-compose.yml b/docker-compose.yml index 6b3dd7055..2dcaf5cb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,8 +10,8 @@ services: - internal environment: - POSTGRES_PASSWORD=${PG_PASS:-thisisnotagoodpassword} - - POSTGRES_USER=authentik - - POSTGRES_DB=authentik + - POSTGRES_USER=${PG_USER:-authentik} + - POSTGRES_DB=${PG_DB:-authentik} env_file: - .env redis: @@ -24,6 +24,8 @@ services: environment: AUTHENTIK_REDIS__HOST: redis AUTHENTIK_POSTGRESQL__HOST: postgresql + AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik} + AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} volumes: - ./media:/media @@ -49,6 +51,8 @@ services: environment: AUTHENTIK_REDIS__HOST: redis AUTHENTIK_POSTGRESQL__HOST: postgresql + AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik} + AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} volumes: - ./backups:/backups diff --git a/website/docs/upgrading/to-0.13.md b/website/docs/upgrading/to-0.13.md index 47d0ad9d1..b6f59c4cd 100644 --- a/website/docs/upgrading/to-0.13.md +++ b/website/docs/upgrading/to-0.13.md @@ -35,6 +35,13 @@ If you decided to rename the folder you're running the docker-compose file from, The only manual change you have to do is replace the `PASSBOOK_` prefix in your `.env` file, so `PASSBOOK_SECRET_KEY` gets changed to `AUTHENTIK_SECRET_KEY`. +Additionally, the database name and username have to be changed, so add this block to your `.env` file: + +``` +PG_USER=passbook +PG_DB=passbook +``` + Afterwards, you can simply run `docker-compose up -d` and then the normal upgrade command of `docker-compose run --rm server migrate`. ### Kubernetes