updated authentik

This commit is contained in:
2025-11-08 22:37:22 -08:00
parent 5edae7327a
commit 373f6deb66
3 changed files with 72 additions and 47 deletions
+5
View File
@@ -0,0 +1,5 @@
# Authentik
Here is the official doc: https://docs.goauthentik.io/install-config/install/docker-compose/
Authentik is on a 2 month release cycle and should be updated in order of release.
+59 -44
View File
@@ -1,54 +1,69 @@
authentik: services:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2023.10.2}
postgresql:
env_file:
- .env
environment:
POSTGRES_DB: ${PG_DB:-authentik}
POSTGRES_PASSWORD: ${PG_PASS:?database password required}
POSTGRES_USER: ${PG_USER:-authentik}
healthcheck:
interval: 30s
retries: 5
start_period: 20s
test:
- CMD-SHELL
- pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
timeout: 5s
image: docker.io/library/postgres:16-alpine
restart: unless-stopped restart: unless-stopped
volumes:
- database:/var/lib/postgresql/data
server:
command: server command: server
environment: depends_on:
AUTHENTIK_REDIS__HOST: redis postgresql:
AUTHENTIK_POSTGRESQL__HOST: postgresql condition: service_healthy
AUTHENTIK_POSTGRESQL__USER: authentik
AUTHENTIK_POSTGRESQL__NAME: authentik
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
volumes:
- ./data/authentik-media:/media
- ./data/authentik-custom-templates:/templates
env_file: env_file:
- .env - .env
ports:
- "${COMPOSE_PORT_HTTP:-9000}:9000"
- "${COMPOSE_PORT_HTTPS:-9443}:9443"
depends_on:
- postgresql
- redis
networks:
- default
- admin_web
authentik-worker:
image: ghcr.io/goauthentik/server:2023.10.2
restart: unless-stopped
command: worker
environment: environment:
AUTHENTIK_REDIS__HOST: redis
AUTHENTIK_POSTGRESQL__HOST: postgresql AUTHENTIK_POSTGRESQL__HOST: postgresql
AUTHENTIK_POSTGRESQL__USER: authentik AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__NAME: authentik
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS} AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
# `user: root` and the docker socket volume are optional. AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
# See more for the docker socket integration here: AUTHENTIK_SECRET_KEY: ${AUTHENTIK_SECRET_KEY:?secret key required}
# https://goauthentik.io/docs/outposts/integrations/docker image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.10.1}
# Removing `user: root` also prevents the worker from fixing the permissions ports:
# on the mounted folders, so when removing this make sure the folders have the correct UID/GID - ${COMPOSE_PORT_HTTP:-9000}:9000
# (1000:1000 by default) - ${COMPOSE_PORT_HTTPS:-9443}:9443
restart: unless-stopped
volumes:
- ./media:/media
- ./custom-templates:/templates
worker:
command: worker
depends_on:
postgresql:
condition: service_healthy
env_file:
- .env
environment:
AUTHENTIK_POSTGRESQL__HOST: postgresql
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 user: root
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- ./data/authentik-media:/media - ./media:/media
- ./data/authentik-certs:/certs - ./certs:/certs
- ./data/authentik-custom-templates:/templates - ./custom-templates:/templates
env_file:
- .env volumes:
depends_on: database:
- postgresql driver: local
- redis
networks:
- default
+5
View File
@@ -0,0 +1,5 @@
#echo "PG_PASS=$(openssl rand -base64 36 | tr -d '\n')" >> .env
#echo "AUTHENTIK_SECRET_KEY=$(openssl rand -base64 60 | tr -d '\n')" >> .env
#echo "AUTHENTIK_ERROR_REPORTING__ENABLED=true" >> .env
#COMPOSE_PORT_HTTP=80
#COMPOSE_PORT_HTTPS=443