1
0

Minor cleanup of various files

This commit is contained in:
2025-07-12 15:53:05 -04:00
parent 9a15248bed
commit d410ff691a
3 changed files with 24 additions and 46 deletions

View File

@@ -1,28 +1,20 @@
---
# Authentik
# 2FA for Docker apps
# Authentik
# ↳ https://github.com/goauthentik/authentik
# ↳ https://goauthentik.io/
services:
authentik-postgresql:
image: docker.io/library/postgres:12-alpine
restart: unless-stopped
container_name: authentik-postgresql
networks:
restart: unless-stopped
networks:
- proxy
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
test:
- CMD-SHELL
- pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}
start_period: 20s
interval: 30s
retries: 5
timeout: 5s
volumes:
- /home/fxequals/docker/authentik/database:/var/lib/postgresql/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
PUID: 1000
PGID: 1000
@@ -33,32 +25,36 @@ services:
- .env
authentik-redis:
image: docker.io/library/redis:alpine
container_name: authentik-redis
command: --save 60 1 --loglevel warning
restart: unless-stopped
container_name: authentik-redis
networks:
networks:
- proxy
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep PONG"]
test:
- CMD-SHELL
- redis-cli ping | grep PONG
start_period: 20s
interval: 30s
retries: 5
timeout: 3s
volumes:
- /home/fxequals/docker/authentik/redis:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
PUID: 1000
PGID: 1000
authentik-server:
image: ghcr.io/goauthentik/server:latest
restart: unless-stopped
command: server
container_name: authentik-server
networks:
restart: unless-stopped
networks:
proxy:
- ipv4_address: 172.18.1.10
ipv4_address: 172.18.1.10
# ports:
# - 9000:9000 # Remove after putting Authentik behind NGINX
# - 9443:9443 # Remove after putting Authentik behind NGINX
environment:
PUID: 1000
PGID: 1000
@@ -70,13 +66,8 @@ services:
volumes:
- /home/fxequals/docker/authentik/media:/media
- /home/fxequals/docker/authentik/custom-templates:/templates
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
# ports:
# - 9090:9090
# - 9443:9443
depends_on:
- authentik-postgresql
- authentik-redis
@@ -85,7 +76,7 @@ services:
restart: unless-stopped
container_name: authentik-worker
command: worker
networks:
networks:
- proxy
environment:
PUID: 1000
@@ -95,20 +86,17 @@ services:
AUTHENTIK_POSTGRESQL__USER: ${PG_USER:-authentik}
AUTHENTIK_POSTGRESQL__NAME: ${PG_DB:-authentik}
AUTHENTIK_POSTGRESQL__PASSWORD: ${PG_PASS}
# user: root
volumes:
# - /var/run/docker.sock:/var/run/docker.sock
- /home/fxequals/docker/authentik/media:/media
- /home/fxequals/docker/authentik/certs:/certs
- /home/fxequals/docker/authentik/custom-templates:/templates
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- .env
depends_on:
- authentik-postgresql
- authentik-redis
networks:
proxy:
external: true
# Documentation available at https://docs.goauthentik.io/docs/install-config/install/docker-compose