/traefik-hardened

hardened rootless Traefik v2 deployment without mounting the Docker socket into the Traefik container

traefik2-hardened

This is an example configuration of Traefik v2 for use with docker compose. It demonstrates some good security practices like running as an unprivileged user, using a read-only container and not mounting the docker socket into the container.

As of October 2023, the Tecnativa docker socket proxy is replaced with wollomatic/socket-proxy. This is because the new socket proxy is written in Go, allowing a more hardened deployment. For an example with Technativa's docker proxy, see the the docker-compose.yaml file tagged before 2.10.

TLS certificates are generated automatically using Let's Encrypt.