Skip to main content

Updating Authentik

This is extended guide to updating Authentik software. Read trough official Authentik documentation before running updates.

Authentik Documentation

  1. Take a snapshot of Overseer vm
  2. Navigate to Authentik Directory
cd /docker/authentik
  1. Backup Database
docker exec -t authentik_postgresql_1 pg_dumpall -c -U postgres > authentik_backup.sql
  1. Download the latest docker-compose.yml file
wget -O docker-compose.yml https://goauthentik.io/docker-compose.yml
  1. Ensure .env is all set and has following variables in it
touch .env
PG_PASS=your_database_password
PG_USER=authentik
PG_DB=authentik
AUTHENTIK_SECRET_KEY=your_secret_key
AUTHENTIK_TAG=latest
  1. Pull the Latest image and apply the updates
docker compose pull
docker compose up -d
  1. Check the status
docker compose ps
  1. Login to Authentik and make sure everything is up to date, and everything is working properly

Optional:

If there is an error due to space when downloading or installing the image run a clean up command: 

docker image prune -a