---
version: "3.8"
secrets:
JWT_SECRET:
file: ./data/authelia/secrets/JWT_SECRET
STORAGE_ENCRYPTION_KEY:
file: ./data/authelia/secrets/STORAGE_ENCRYPTION_KEY
volumes:
swag:
authelia:
networks:
net:
driver: bridge
services:
swag:
container_name: swag
image: lscr.io/linuxserver/swag
restart: unless-stopped
networks:
net:
aliases: []
ports:
- 80:80
- 443:443
- 81:81
volumes:
- ./data/swag:/config
- ./data/authelia/config/authelia.log:/authelia/authelia.log:ro
environment:
PUID: 1000
PGID: 1000
TZ: Europe/Paris
URL: vortextech.fr
SUBDOMAINS: wildcard
VALIDATION: dns
CERTPROVIDER: cloudflare
DNSPLUGIN: cloudflare
DOCKER_MODS: linuxserver/mods:swag-dashboard|linuxserver/mods:swag-mod2|linuxserver/mods:swag-crowdsec
EMAIL:
aldiallo@mac.com
CROWDSEC_API_KEY: 9ea02d60f21ef8d949273edbf9420e79
CROWDSEC_LAPI_URL:
http://crowdsec:8080
cap_add:
- NET_ADMIN
authelia:
container_name: authelia
image: authelia/authelia
restart: unless-stopped
networks:
net:
aliases: []
expose:
- 9091
secrets: [JWT_SECRET, SESSION_SECRET, STORAGE_PASSWORD, STORAGE_ENCRYPTION_KEY]
volumes:
- ./data/authelia/config:/config
environment:
TZ: Europe/Paris
AUTHELIA_JWT_SECRET_FILE: /run/secrets/JWT_SECRET
AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: /run/secrets/STORAGE_ENCRYPTION_KEY
AUTHELIA_SESSION_NAME: authelia_session
AUTHELIA_SESSION_DOMAIN: vortextech.fr
AUTHELIA_SESSION_SAME_SITE: lax
AUTHELIA_SESSION_EXPIRATION: 1h
AUTHELIA_SESSION_INACTIVITY: 5m
AUTHELIA_STORAGE_LOCAL_PATH: /config/db.sqlite3
AUTHELIA_NOTIFIER_FILESYSTEM_FILENAME: /config/notification.txt
AUTHELIA_AUTHENTICATION_BACKEND_FILE_PATH: /config/users_database.yml
AUTHELIA_THEME: dark
AUTHELIA_ACCESS_CONTROL_DEFAULT_POLICY: deny
#AUTHELIA_ACCESS_CONTROL_NETWORKS: 10.0.1.0/24, 172.16.0.0/12
crowdsec:
container_name: crowdsec
image: crowdsecurity/crowdsec
restart: unless-stopped
environment:
- COLLECTIONS=crowdsecurity/nginx
- GID=1000
depends_on:
- swag
volumes:
- ./data/swag/log/nginx:/var/log/nginx
- ./crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml
- ./crowdsec/crowdsec-db:/var/lib/crowdsec/data/
- ./crowdsec/crowdsec-config:/etc/crowdsec/
security_opt:
- no-new-privileges=true
...