Folder structure:
/services
/authelia
docker-compose_authelia.yml # (Includes example service with auth)
/caddy
docker-compose_caddy.yml
Dockerfile # Needed to add the CaddyDockerProxy extension
Caddyfile # Needed to contain common configurationBefore any of this, you'll need to run docker network create -d bridge caddy
to make the caddy network that all these containers will connect to.
I also have a wildcard (*.example.com) A record pointing at my server's IP
Good catch! It looks like my setup might be a bit outdated, and
/api/verifywas depreciated a while ago: https://www.authelia.com/blog/4.38-release-notes/. I'll note that my setup does currently work for me, but I totally understand wanting to do it right when setting up for the first time.You could probably replace that line with
uri /api/authz/forward-auth?authelia_url=https://auth.example.com/and see if it works. I'm not able to test it currently, though. If it does work for you, please let me know and I'll update the gist!