Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
docker labels for traefik reverse proxy multiple ports in a single container with different domain names
--label "traefik.enable=true" \
--label "traefik.protocol=http" \
--label "traefik.first.port=80" \
--label "" \
--label "traefik.second.port=8080" \
--label "" \
Above labels will allow us to forward to docker container port 80 and to same container's port 8080
Please note that this labels are valid for traefik v1. v2 has different labels
Copy link

MartyLake commented Oct 24, 2021

Thank you very much Sir for saving my sunday night hacking plan !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment