Skip to content

Instantly share code, notes, and snippets.

@jmcarbo
Created January 4, 2018 03:00
Show Gist options
  • Save jmcarbo/48b1ca25746a4cad5cba11b9fbb64609 to your computer and use it in GitHub Desktop.
Save jmcarbo/48b1ca25746a4cad5cba11b9fbb64609 to your computer and use it in GitHub Desktop.
traefikedge:
image: traefik:1.4.3-alpine
ports:
- target: 80
published: 80 #for redirect to HTTPS
protocol: tcp
mode: host #to bypass ingress mesh, to preserve client ip
- target: 443
published: 443
protocol: tcp
mode: host #to bypass ingress mesh, to preserve client ip
networks:
- netfront
deploy:
mode: global
placement:
constraints:
- node.role == manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment