Authentik logoIdentity Provider

Authentik

A self-hosted identity provider and SSO supporting SAML, OAuth2, LDAP, and many authentication protocols.

Hardware compatibility

Unknown — resource or architecture evidence is missing. Check upstream docs.

Hardware compatibility

Available CPU cores
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Available RAM (GiB)
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Available disk (GiB)
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Architecture
Unknown (not recorded)

Unknown (not recorded)

Review notes

Requires PostgreSQL and Redis. More complex to configure than simple apps but powerful for centralized identity management.

Deployment guide

Run with Docker Compose using PostgreSQL and Redis. Domain and secret key must be configured correctly.

  1. Create .env file with secret key, domain, and email configuration.
  2. Run Docker Compose with Authentik server, worker, PostgreSQL, and Redis.
  3. Access the web UI at port 9000 and set the admin password.
  4. Configure providers (OAuth2, SAML, LDAP) for each application.
  5. Create flows and policies to manage authentication and authorization.
Backup:Back up the PostgreSQL database and media directory. Redis only stores cache so backup is optional.

No hosted installer

The examples below are unverified, not installers. Consult official documentation and replace secrets before use.

Authentik is explicitly deferred: the existing latest-version / placeholder-secrets example is not safe for an automated installer.

Official documentation

Unverified deployment examples

Do not run unchanged. Replace all placeholder secrets, pin image versions, review privileged access and exposed ports, configure HTTPS and backups. These snippets may be incomplete or outdated; use upstream docs.

docker-compose.ymlyaml
services:
  authentik-server:
    image: ghcr.io/goauthentik/server:latest
    container_name: authentik_server
    command: server
    environment:
      AUTHENTIK_SECRET_KEY: "change-me-to-a-long-random-string" # CHANGE THIS
      AUTHENTIK_REDIS__HOST: redis
      AUTHENTIK_POSTGRESQL__HOST: postgres
      AUTHENTIK_POSTGRESQL__USER: authentik
      AUTHENTIK_POSTGRESQL__PASSWORD: CHANGEME_db_password # CHANGE THIS
      AUTHENTIK_POSTGRESQL__NAME: authentik
    ports:
      - "9000:9000"
    depends_on:
      - postgres
      - redis
    restart: unless-stopped

  authentik-worker:
    image: ghcr.io/goauthentik/server:latest
    container_name: authentik_worker
    command: worker
    environment:
      AUTHENTIK_SECRET_KEY: "change-me-to-a-long-random-string" # CHANGE THIS
      AUTHENTIK_REDIS__HOST: redis
      AUTHENTIK_POSTGRESQL__HOST: postgres
      AUTHENTIK_POSTGRESQL__USER: authentik
      AUTHENTIK_POSTGRESQL__PASSWORD: CHANGEME_db_password # CHANGE THIS
      AUTHENTIK_POSTGRESQL__NAME: authentik
    depends_on:
      - postgres
      - redis
    restart: unless-stopped

  postgres:
    image: postgres:16-alpine
    container_name: authentik_postgres
    environment:
      POSTGRES_USER: authentik
      POSTGRES_PASSWORD: CHANGEME_db_password # CHANGE THIS
      POSTGRES_DB: authentik
    volumes:
      - ./postgres:/var/lib/postgresql/data
    restart: unless-stopped

  redis:
    image: redis:7-alpine
    container_name: authentik_redis
    restart: unless-stopped
setup.shbash
# No executable setup script; follow current official documentation.
# Không có script cài đặt; xem tài liệu chính thức hiện hành.
# https://docs.goauthentik.io

Stack

PythonTypeScriptPostgreSQLRedis