services: server: command: server environment: AUTHENTIK_POSTGRESQL__HOST: ${POSTGRES_HOST:-postgres-postgres} AUTHENTIK_POSTGRESQL__PORT: ${POSTGRES_PORT:-5432} AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik} AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:?secret key required} image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.10.1} ports: - ${COMPOSE_PORT_HTTP:-9000}:9000 - ${COMPOSE_PORT_HTTPS:-9443}:9443 restart: unless-stopped volumes: - ./media:/media - ./custom-templates:/templates extra_hosts: - "host.docker.internal:host-gateway" worker: command: worker environment: AUTHENTIK_POSTGRESQL__HOST: ${POSTGRES_HOST:-postgres-postgres} AUTHENTIK_POSTGRESQL__PORT: ${POSTGRES_PORT:-5432} AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik} AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:?secret key required} image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.10.1} restart: unless-stopped user: root volumes: - /var/run/docker.sock:/var/run/docker.sock - ./media:/media - ./certs:/certs - ./custom-templates:/templates extra_hosts: - "host.docker.internal:host-gateway"