2023-11-07 20:47:19 +00:00
|
|
|
version: "3.4"
|
|
|
|
|
|
|
|
x-env: &env
|
|
|
|
- TIMEZONE={{ timezone }}
|
|
|
|
- AUTHENTIK_REDIS__HOST=redis
|
|
|
|
- AUTHENTIK_POSTGRESQL__HOST=db
|
|
|
|
- AUTHENTIK_POSTGRESQL__USER=authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__NAME=authentik
|
2023-12-14 22:03:23 +00:00
|
|
|
- AUTHENTIK_POSTGRESQL__PASSWORD={{ vault_authentik_db_password }}
|
|
|
|
- AUTHENTIK_SECRET_KEY={{ vault_authentik_secret_key }}
|
2023-11-07 20:47:19 +00:00
|
|
|
- AUTHENTIK_WEB__WORKERS=1
|
|
|
|
- AUTHENTIK_DISABLE_UPDATE_CHECK=true
|
|
|
|
- AUTHENTIK_ERROR_REPORTING__ENABLED=false
|
|
|
|
- AUTHENTIK_DISABLE_STARTUP_ANALYTICS=true
|
|
|
|
- AUTHENTIK_EMAIL__HOST=smtp.eu.mailgun.org
|
|
|
|
- AUTHENTIK_EMAIL__PORT=465
|
2023-12-14 22:03:23 +00:00
|
|
|
- AUTHENTIK_EMAIL__USERNAME={{ vault_authentik_email_username }}
|
|
|
|
- AUTHENTIK_EMAIL__PASSWORD={{ vault_authentik_email_password }}
|
2023-11-07 20:47:19 +00:00
|
|
|
- AUTHENTIK_EMAIL__USE_TLS=true
|
2023-12-14 22:03:23 +00:00
|
|
|
- AUTHENTIK_EMAIL__FROM={{ vault_authentik_email_from }}
|
2023-11-07 20:47:19 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
2023-12-21 16:42:02 +00:00
|
|
|
image: ghcr.io/goauthentik/server:2023.10
|
2023-11-07 20:47:19 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
command: server
|
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
environment: *env
|
|
|
|
volumes:
|
|
|
|
- "{{ app_data_dir }}/authentik/media:/media"
|
|
|
|
- "{{ app_data_dir }}/authentik/custom-templates:/templates"
|
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.authentik.rule=Host(`auth.jakehoward.tech`)
|
|
|
|
- traefik.http.services.authentik-authentik.loadbalancer.server.port=9000
|
|
|
|
- traefik.http.middlewares.authentik-ratelimit.ratelimit.average=5
|
|
|
|
- traefik.http.middlewares.authentik-ratelimit.ratelimit.burst=1000
|
|
|
|
- traefik.http.routers.authentik.middlewares=authentik-ratelimit
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
|
|
|
|
worker:
|
2023-12-21 16:42:02 +00:00
|
|
|
image: ghcr.io/goauthentik/server:2023.10
|
2023-11-07 20:47:19 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
command: worker
|
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
environment: *env
|
|
|
|
volumes:
|
|
|
|
- "{{ app_data_dir }}/authentik/media:/media"
|
|
|
|
- "{{ app_data_dir }}/authentik/certs:/certs"
|
|
|
|
- "{{ app_data_dir }}/authentik/custom-templates:/templates"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- server
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:15-alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/speed/dbs/postgres/authentik:/var/lib/postgresql/data
|
|
|
|
environment:
|
2023-12-14 22:03:23 +00:00
|
|
|
- POSTGRES_PASSWORD={{ vault_authentik_db_password }}
|
2023-11-07 20:47:19 +00:00
|
|
|
- POSTGRES_USER=authentik
|
|
|
|
|
|
|
|
redis:
|
2023-12-04 09:22:51 +00:00
|
|
|
image: redis:7-alpine
|
2023-11-07 20:47:19 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /mnt/speed/dbs/redis/authentik:/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|