Self-host authentik with Levelrail
VerifiedAn identity provider and SSO platform with flows, policies, and support for OIDC, SAML, LDAP, and proxy auth.
- Authorgoauthentik
- LicenceMIT
- Memory2 GiB
- Archarm64
- Services3
How to self-host authentik
-
Pull the images
3 images are pulled on your server.
Show images
ghcr.io/goauthentik/server:2026.8.3postgres:16-alpineghcr.io/goauthentik/server:2026.8.3
-
Create the app
3 services start in a single Compose app, with 3 named volume mounts for your data, on port 9000.
-
Fill in the secrets
6 secrets are generated and stored encrypted, 9 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
authentik requirements
- Memory
- About 2 GiB
- Architectures
- amd64 image published, arm64 tested
- Ports
- 9000
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- MIT, permissive license
- Verified. Verified on arm64 with image tag 2026.8.3. Our CI ran this exact image version and it answered on its health path. Evidence
- Host ports. It publishes port 9000 on the host, so open them in the VPS firewall only if you want that.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then authentik. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the authentik docs page.
Deploy authentik your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy authentik from the CLI
levelrail-cli templates deploy authentik --name my-authentik Deploy authentik with the API
curl -X POST -H "Authorization: Bearer $TOKEN" \
https://levelrail.example.com/api/v1/service-templates/authentik/deploy authentik configuration
authentik services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| authentik | ghcr.io/goauthentik/server:2026.8.3 | 9000 | authentik_media -> /media |
| db | postgres:16-alpine | none | authentik_db_data -> /var/lib/postgresql/data |
| worker | ghcr.io/goauthentik/server:2026.8.3 | none | authentik_media -> /media |
authentik environment variables
| Variable | Service | Value |
|---|---|---|
| AUTHENTIK_BOOTSTRAP_EMAIL | authentik | Preset by the template |
| AUTHENTIK_BOOTSTRAP_PASSWORD | authentik | Generated at deploy |
| AUTHENTIK_POSTGRESQL__HOST | authentik | Preset by the template |
| AUTHENTIK_POSTGRESQL__NAME | authentik | Preset by the template |
| AUTHENTIK_POSTGRESQL__PASSWORD | authentik | Generated at deploy |
| AUTHENTIK_POSTGRESQL__USER | authentik | Preset by the template |
| AUTHENTIK_SECRET_KEY | authentik | Generated at deploy |
| POSTGRES_DB | db | Preset by the template |
Show all 15 variables
- POSTGRES_PASSWORDdbGenerated at deploy
- POSTGRES_USERdbPreset by the template
- AUTHENTIK_POSTGRESQL__HOSTworkerPreset by the template
- AUTHENTIK_POSTGRESQL__NAMEworkerPreset by the template
- AUTHENTIK_POSTGRESQL__PASSWORDworkerGenerated at deploy
- AUTHENTIK_POSTGRESQL__USERworkerPreset by the template
- AUTHENTIK_SECRET_KEYworkerGenerated at deploy
Ports and volumes
- Ports
- 9000
- Volumes
- 3 named mounts: authentik_media -> /media, authentik_db_data -> /var/lib/postgresql/data, authentik_media -> /media
authentik FAQ
How much memory does authentik need?
The catalog lists about 2 GiB of memory for authentik across its 3 services.
Does authentik run on arm64?
For authentik, arm64 is tested; amd64 is image published.
What licence is authentik under?
authentik is licensed under MIT, which is permissive, with few conditions on reuse.
Does authentik need configuration before it starts?
No. The template fills in its own defaults and generates secrets at deploy time.
Which database does authentik bundle?
The template includes Postgres, running as its own service.
Which ports does authentik use?
authentik listens on port 9000 inside the stack.
Where does authentik keep its data?
In named volumes: authentik_media mounted at /media and authentik_db_data mounted at /var/lib/postgresql/data.
Can I deploy authentik on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id authentik for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image ghcr.io/goauthentik/server:2026.8.3, postgres:16-alpine, ghcr.io/goauthentik/server:2026.8.3 is what you deploy there.