Created
May 2, 2018 01:58
-
-
Save ndrut/1c84768a540f349d3c9f92979b07d29c to your computer and use it in GitHub Desktop.
This file contains 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
version: '3.6' | |
services: | |
core: | |
image: traefik:latest | |
command: | |
- "--api" | |
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https" | |
- "--entrypoints=Name:https Address::443 TLS:/run/secrets/nbusa-wildcard.crt,/run/secrets/nbusa-wildcard.key" | |
- "--defaultentrypoints=http,https" | |
- "--docker" | |
- "--docker.swarmmode" | |
- "--docker.domain=networkboxusa.com" | |
- "--docker.watch" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
networks: | |
- webgateway | |
- traefik | |
ports: | |
- target: 80 | |
published: 80 | |
mode: host | |
- target: 443 | |
published: 443 | |
mode: host | |
- target: 8080 | |
published: 8080 | |
mode: host | |
secrets: | |
- nbusa-wildcard.crt | |
- nbusa-wildcard.key | |
deploy: | |
mode: global | |
placement: | |
constraints: | |
- node.role == manager | |
update_config: | |
parallelism: 1 | |
delay: 10s | |
restart_policy: | |
condition: on-failure | |
networks: | |
webgateway: | |
driver: overlay | |
external: true | |
traefik: | |
driver: overlay | |
external: true | |
secrets: | |
nbusa-wildcard.crt: | |
external: true | |
nbusa-wildcard.key: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment