mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2025-01-18 15:27:08 +00:00
dbb3bbc6a6
add some more notes regarding authelia setup |
||
---|---|---|
.. | ||
config | ||
docker-compose.yml | ||
README.md |
References
- https://github.com/authelia/authelia
- https://www.youtube.com/watch?v=u6H-Qwf4nZA&t=1314s
- https://docs.technotim.live/posts/authelia-traefik/
Notes
You have to put the configuration files in the directory config
to your Docker volume bind mount.
The do the following:
- Adjust the configuration.yml to your needs. Especially replace exmaple.com with your own domain name. Add all your to be protected subdomains to the access_control area.
- Adjust users_database.yml and add your user accounts. You can create new password hashes via
docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password 'ExamplePassword'
- Adjust your Traefik dynamic configuration and add authelia as middleaware. See here for an example configuration file.
- Finally, add authelia as middleware for each container to protect. I recommend using labels. Note that authelia should always be listed first.
labels:
- traefik.enable=true
- traefik.http.routers.protected-service.middlewares=authelia@file,local-ipwhitelist@file