Skip to content

Instantly share code, notes, and snippets.

@ramcoelho
Created April 29, 2023 12:58
Show Gist options
  • Save ramcoelho/af7150810da8f70bbff1f36e8f977bda to your computer and use it in GitHub Desktop.
Save ramcoelho/af7150810da8f70bbff1f36e8f977bda to your computer and use it in GitHub Desktop.
services:
authentik:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.10.1}
restart: unless-stopped
command: server
environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY}
AUTHENTIK_ERROR_REPORTING__ENABLED: "true"
volumes:
- ./media:/media
- ./custom-templates:/templates
- ./geoip:/geoip
labels:
traefik.enable: "true"
traefik.http.routers.authentik.tls: "true"
traefik.http.routers.authentik.tls.certresolver: "letsencrypt"
traefik.http.services.authentik.loadbalancer.server.scheme: "http"
traefik.http.services.authentik.loadbalancer.server.port: "9000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment