added authelia and added network settings

This commit is contained in:
2026-04-22 18:36:10 +00:00
parent 66b7b761de
commit 942da919d3
2 changed files with 37 additions and 0 deletions

30
authelia/compose.yml Normal file
View File

@@ -0,0 +1,30 @@
secrets:
JWT_SECRET:
file: './data/authelia/secrets/JWT_SECRET'
SESSION_SECRET:
file: './data/authelia/secrets/SESSION_SECRET'
STORAGE_PASSWORD:
file: './data/authelia/secrets/STORAGE_PASSWORD'
STORAGE_ENCRYPTION_KEY:
file: './data/authelia/secrets/STORAGE_ENCRYPTION_KEY'
services:
authelia:
container_name: 'authelia'
image: 'docker.io/authelia/authelia:latest'
restart: 'unless-stopped'
networks:
- reverse-proxy
secrets: ['JWT_SECRET', 'SESSION_SECRET', 'STORAGE_PASSWORD', 'STORAGE_ENCRYPTION_KEY']
environment:
AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET_FILE: '/run/secrets/JWT_SECRET'
AUTHELIA_SESSION_SECRET_FILE: '/run/secrets/SESSION_SECRET'
AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE: '/run/secrets/STORAGE_PASSWORD'
AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: '/run/secrets/STORAGE_ENCRYPTION_KEY'
volumes:
- './data/authelia/config:/config'
networks:
reverse-proxy:
name: reverse-proxy
external: true

View File

@@ -8,6 +8,8 @@ services:
- "443:443"
- "443:443/udp"
- "8080:8080"
networks:
- reverse-proxy
volumes:
- ./charon-data:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
@@ -21,3 +23,8 @@ services:
timeout: 10s
retries: 3
start_period: 40s
networks:
reverse-proxy:
name: reverse-proxy
external: true