Files
dockerservertest/reverseproxy/compose.yml
2025-03-17 18:30:33 -05:00

65 lines
1.7 KiB
YAML

networks:
authelia:
name: authelia
reverseproxy:
name: reverseproxy
external: true
services:
authelia:
container_name: authelia
image: authelia/authelia:latest
restart: unless-stopped
depends_on:
- postgres
- redis
volumes:
- ./authelia/config:/config
networks:
- authelia
- reverseproxy
environment:
AUTHELIA_JWT_SECRET_FILE: /authelia/config/secrets/JWT_SECRET
AUTHELIA_SESSION_SECRET_FILE: /authelia/config/secrets/SESSION_SECRET
AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE: /authelia/config/secrets/SMTP_PASSWORD
AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: /authelia/config/secrets/STORAGE_ENCRYPTION_KEY
AUTHELIA_STORAGE_POSTGRES_PASSWORD_FILE: /authelia/config/secrets/STORAGE_PASSWORD
AUTHELIA_SESSION_REDIS_PASSWORD_FILE: /authelia/config/secrets/REDIS_PASSWORD
caddy:
container_name: caddy
build: .
# image: caddy:latest
#restart: unless-stopped
ports:
- "80:80"
- "443:443"
networks:
- reverseproxy
volumes:
- ./caddy/data:/data
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
postgres:
container_name: postgres
image: postgres:15
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data
networks:
- authelia
environment:
POSTGRES_USER: "authelia"
POSTGRES_PASSWORD: "8RXS4KPhejCw7OaqrtOhdgaUN4k9rPOcK4sUDBvIQ6q8BDNFWo4l47RXtY7Itkic"
redis:
container_name: redis
image: redis:7
networks:
- authelia
restart: unless-stopped
command: "redis-server --save 60 1 --loglevel warning --requirepass t7SxQuf48cUu1XLBNKLbWGBJzEUSMnaWMd9a1QRqoXyhajcPQObfX0so9M2Mklxn"
volumes:
- ./redis:/data