Skip to content

Instantly share code, notes, and snippets.

@ismailyenigul
Last active July 17, 2020 18:39
Show Gist options
  • Select an option

  • Save ismailyenigul/06c44a0d45bb52884d3825eed55edb5d to your computer and use it in GitHub Desktop.

Select an option

Save ismailyenigul/06c44a0d45bb52884d3825eed55edb5d to your computer and use it in GitHub Desktop.
traefikv2 container with custom http port
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