Traefik v2: proxy requests to AWS S3 to serve a static site, non-www to www redirect

Traefik v2: proxy requests to AWS S3 to serve a static site, non-www to www redirect

Post contents: Following up from my previous blog post about the base setup of Traefik v2, I will now show how easy it is to set up Traefik as a reverse proxy to an AWS S3 bucket and redirect www to non-www.

[…]

Next, modify docker-compose.yml of Traefik to mount this dynamic directory into /etc/traefik/dynamic. You will be able to add files to this directory, and they will be hot-reloaded thanks to Traefik and Docker bind mounts.

[…]