Last active
July 17, 2020 18:39
-
-
Save ismailyenigul/06c44a0d45bb52884d3825eed55edb5d to your computer and use it in GitHub Desktop.
traefikv2 container with custom http port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| traefik2 label for the container running service different than port 80 (ie 8080) | |
| container_name: webserver | |
| restart: always | |
| labels: | |
| - traefik.http.routers.websrv.rule=Host(`cloud.mydomain.com`) | |
| - traefik.http.services.websrv.loadbalancer.server.port=8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment