Traefik
Routers, labels, Let’s Encrypt certificates
Routers, labels, Let’s Encrypt certificates
Traefik is a reverse proxy: it takes every request to the server on ports 80 and 443 and hands it to a container by site name. It gets and renews Let’s Encrypt certificates on its own, and picks up new containers from labels in their compose files — no proxy config edits, no restart.
Read the overview${…} is substituted by compose, and only in the compose file.from Docker EngineA single-file mount doesn’t see your editsIf a single file is mounted into a container (./nginx.conf:/etc/nginx/nginx.conf), then after git pull, sed -i or mv the container keeps seeing the old one.from Docker ComposeThe $ sign: $$ in compose, single quotes in .envIn a compose file, escape $ as $$.from Docker Enginedocker.sock only for those that can’t do without itAccess to the Docker socket is root on the host.Entries from other topics that are about this too.