← All guides
Authentik
Authentik is a flexible identity provider supporting OAuth2/OIDC, SAML, LDAP, and proxy-based SSO, officially deployed via a single downloadable Docker Compose file.
This guide is synthesized from Authentik's own official documentation, linked above — always cross-check exact package/version names there before running these commands on a production server, since distro and project versions move over time.
1Download the official compose file
wget https://docs.goauthentik.io/compose.yml2Generate required secrets
echo "PG_PASS=$(openssl rand -base64 36 | tr -d '\n')" >> .envecho "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> .env3Start authentik
docker compose pulldocker compose up -dDo not bind-mount /etc/timezone or /etc/localtime into the authentik containers.
4Complete initial setup
Open http://<server-ip-or-hostname>:9000 and set a password for the default akadmin user.