2022-12-17 19:20:46 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
# https://github.com/goauthentik/authentik/pkgs/container/server
|
|
|
|
# https://goauthentik.io/docs/installation/docker-compose
|
2023-09-13 22:33:47 +02:00
|
|
|
# https://goauthentik.io/docs/troubleshooting/login
|
2022-12-17 19:20:46 +01:00
|
|
|
|
|
|
|
# initial setup: https://<your server>/if/flow/initial-setup/
|
2023-02-18 15:25:31 +01:00
|
|
|
# icon /static/dist/assets/icons/icon.svg
|
2022-12-17 19:20:46 +01:00
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
# example flows, e.g. password recovery:
|
|
|
|
# https://goauthentik.io/docs/flow/examples/flows
|
|
|
|
|
|
|
|
# In default-authentication-flow:
|
|
|
|
# - Edit Flow > Behavior Settings > check "Compatibility mode"
|
|
|
|
# - Stage Bindings > Identification > Edit Stage
|
|
|
|
# - Set password stage
|
|
|
|
# - uncheck "Case insenstive matching" and "Show matched user"
|
|
|
|
|
2022-12-17 19:20:46 +01:00
|
|
|
networks:
|
|
|
|
authentik:
|
|
|
|
|
|
|
|
services:
|
|
|
|
authentik:
|
2024-07-01 00:52:29 +02:00
|
|
|
image: ghcr.io/goauthentik/server:2024.6
|
2022-12-17 19:20:46 +01:00
|
|
|
container_name: authentik
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
hostname: auth
|
|
|
|
domainname: ${BASE_DOMAIN}
|
|
|
|
command: server
|
|
|
|
environment:
|
|
|
|
- AUTHENTIK_LISTEN__HTTP=0.0.0.0:80
|
2023-02-17 23:54:17 +01:00
|
|
|
- AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
2023-06-27 23:38:10 +02:00
|
|
|
|
2022-12-17 19:20:46 +01:00
|
|
|
- AUTHENTIK_REDIS__HOST=redis-authentik
|
2023-02-17 23:54:17 +01:00
|
|
|
|
2022-12-17 19:20:46 +01:00
|
|
|
- AUTHENTIK_POSTGRESQL__HOST=pg-authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__USER=authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__NAME=authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__PASSWORD=${AUTHENTIK_PG_PWD:-password}
|
2023-02-17 23:54:17 +01:00
|
|
|
|
2022-12-22 18:11:48 +01:00
|
|
|
- AUTHENTIK_EMAIL__HOST=mail
|
|
|
|
- AUTHENTIK_EMAIL__PORT=25
|
|
|
|
- AUTHENTIK_EMAIL__USE_TLS=false
|
|
|
|
- AUTHENTIK_EMAIL__USE_SSL=false
|
|
|
|
- AUTHENTIK_EMAIL__FROM=${AUTHENTIK_MAIL_FROM}@${BASE_DOMAIN}
|
2023-09-13 22:33:47 +02:00
|
|
|
|
|
|
|
- AUTHENTIK_DEFAULT_USER_CHANGE_USERNAME=false
|
2022-12-17 19:20:46 +01:00
|
|
|
depends_on:
|
|
|
|
- pg-authentik
|
|
|
|
- redis-authentik
|
|
|
|
networks:
|
|
|
|
- proxy
|
2022-12-22 18:11:48 +01:00
|
|
|
- mail
|
2022-12-17 19:20:46 +01:00
|
|
|
- authentik
|
|
|
|
|
|
|
|
authentik-worker:
|
2024-07-01 00:52:29 +02:00
|
|
|
image: ghcr.io/goauthentik/server:2024.6
|
2022-12-17 19:20:46 +01:00
|
|
|
container_name: authentik-worker
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
command: worker
|
|
|
|
environment:
|
2023-09-13 22:33:47 +02:00
|
|
|
- AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
|
|
|
|
|
2022-12-17 19:20:46 +01:00
|
|
|
- AUTHENTIK_REDIS__HOST=redis-authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__HOST=pg-authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__USER=authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__NAME=authentik
|
|
|
|
- AUTHENTIK_POSTGRESQL__PASSWORD=${AUTHENTIK_PG_PWD:-password}
|
2023-09-13 22:33:47 +02:00
|
|
|
|
|
|
|
- AUTHENTIK_EMAIL__HOST=mail
|
|
|
|
- AUTHENTIK_EMAIL__PORT=25
|
|
|
|
- AUTHENTIK_EMAIL__USE_TLS=false
|
|
|
|
- AUTHENTIK_EMAIL__USE_SSL=false
|
|
|
|
- AUTHENTIK_EMAIL__FROM=${AUTHENTIK_MAIL_FROM}@${BASE_DOMAIN}
|
2022-12-17 19:20:46 +01:00
|
|
|
depends_on:
|
|
|
|
- pg-authentik
|
|
|
|
- redis-authentik
|
|
|
|
networks:
|
|
|
|
- authentik
|
2023-09-13 22:33:47 +02:00
|
|
|
- mail
|
2022-12-17 19:20:46 +01:00
|
|
|
|
|
|
|
pg-authentik:
|
2024-01-03 18:56:26 +01:00
|
|
|
image: postgres:16-alpine
|
2022-12-17 19:20:46 +01:00
|
|
|
container_name: pg-authentik
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=authentik
|
|
|
|
- POSTGRES_USER=authentik
|
|
|
|
- POSTGRES_PASSWORD=${AUTHENTIK_PG_PWD:-password}
|
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/authentik/psql:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- authentik
|
|
|
|
|
|
|
|
redis-authentik:
|
2023-09-13 22:33:47 +02:00
|
|
|
image: redis:7-alpine
|
2022-12-17 19:20:46 +01:00
|
|
|
container_name: redis-authentik
|
|
|
|
restart: "${RESTART:-no}"
|
|
|
|
command: --save 60 1 --loglevel warning
|
|
|
|
networks:
|
|
|
|
- authentik
|