Authentik

This commit is contained in:
Fern Garden 2025-07-22 15:16:02 +08:00
parent bb8a17f0c1
commit 04146cfab9

View file

@ -10,8 +10,8 @@ services:
authentik_redis: authentik_redis:
condition: service_healthy condition: service_healthy
volumes: volumes:
- authentik_media:/media - /home/fern/docker/data/authentik/media:/media
- authentik_templates:/templates - /home/fern/docker/data/authentik/templates:/templates
environment: environment:
- AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY} - AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
- AUTHENTIK_REDIS__HOST=authentik_redis - AUTHENTIK_REDIS__HOST=authentik_redis
@ -32,7 +32,7 @@ services:
image: docker.io/library/postgres:16-alpine image: docker.io/library/postgres:16-alpine
container_name: authentik_db container_name: authentik_db
volumes: volumes:
- authentik_db:/var/lib/postgresql/data - /home/fern/docker/data/authentik/database:/var/lib/postgresql/data
environment: environment:
- POSTGRES_USER=authentik - POSTGRES_USER=authentik
- POSTGRES_DB=authentik - POSTGRES_DB=authentik
@ -84,7 +84,7 @@ services:
image: docker.io/library/redis:alpine image: docker.io/library/redis:alpine
container_name: authentik_redis container_name: authentik_redis
volumes: volumes:
- authentik_redis:/data - /home/fern/docker/data/authentik/redis:/data
networks: networks:
- default - default
command: --save 60 1 --loglevel warning command: --save 60 1 --loglevel warning
@ -106,9 +106,9 @@ services:
condition: service_healthy condition: service_healthy
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- authentik_media:/media - /home/fern/docker/data/authentik/media:/media
- authentik_templates:/templates - /home/fern/docker/data/authentik/templates:/templates
- authentik_certs:/certs - /home/fern/docker/data/authentik/certs:/certs
environment: environment:
- AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY} - AUTHENTIK_SECRET_KEY=${AUTHENTIK_SECRET_KEY}
- AUTHENTIK_REDIS__HOST=authentik_redis - AUTHENTIK_REDIS__HOST=authentik_redis