# Self-host authentik

> An identity provider and SSO platform with flows, policies, and support for OIDC, SAML, LDAP, and proxy auth.

- Page: https://levelrail.com/templates/authentik/
- JSON: https://levelrail.com/templates/authentik.json
- Category: Security
- Licence: MIT (Permissive license)
- Source: https://github.com/goauthentik/authentik
- Upstream docs: https://docs.goauthentik.io

## Requirements
- Memory: about 2 GiB
- amd64: published, arm64: tested
- Needs configuration before start: no
- Pinned image tag: 2026.8.3

## Services

| Service | Image | Tag | 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 |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| authentik | AUTHENTIK_BOOTSTRAP_EMAIL | preset |
| authentik | AUTHENTIK_BOOTSTRAP_PASSWORD | generated |
| authentik | AUTHENTIK_POSTGRESQL__HOST | preset |
| authentik | AUTHENTIK_POSTGRESQL__NAME | preset |
| authentik | AUTHENTIK_POSTGRESQL__PASSWORD | generated |
| authentik | AUTHENTIK_POSTGRESQL__USER | preset |
| authentik | AUTHENTIK_SECRET_KEY | generated |
| db | POSTGRES_DB | preset |
| db | POSTGRES_PASSWORD | generated |
| db | POSTGRES_USER | preset |
| worker | AUTHENTIK_POSTGRESQL__HOST | preset |
| worker | AUTHENTIK_POSTGRESQL__NAME | preset |
| worker | AUTHENTIK_POSTGRESQL__PASSWORD | generated |
| worker | AUTHENTIK_POSTGRESQL__USER | preset |
| worker | AUTHENTIK_SECRET_KEY | generated |

## Deploy

### CLI

```bash
levelrail-cli templates deploy authentik --name my-authentik
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/authentik/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## Questions

### 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.

Self-host authentik, authentik docker compose file, deploy authentik on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
