Last active
March 22, 2018 14:43
-
-
Save gmaslowski/088a3a335302a3e44a307b0562f4b567 to your computer and use it in GitHub Desktop.
docker-swarm-config-files
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.5' | |
services: | |
traefik: | |
image: traefik:1.5.4-alpine | |
command: --web --docker --docker.swarmmode --docker.domain=<domain here> --logLevel=INFO --docker.watch --configfile=/traefik-v1.toml | |
ports: | |
- "80:80" | |
- "443:443" | |
- "8080:8080" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
deploy: | |
placement: | |
constraints: | |
- node.role == manager | |
labels: | |
- "traefik.enabled=false" | |
configs: | |
- traefik-v1.toml | |
configs: | |
traefik-v1.toml: | |
file: ./traefik.toml |
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
debug = false | |
checkNewVersion = true | |
logLevel = "ERROR" | |
defaultEntryPoints = ["https","http"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.http.redirect] | |
entryPoint = "https" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
[retry] | |
[docker] | |
endpoint = "unix:///var/run/docker.sock" | |
domain = "<enter domain here>" | |
watch = true | |
exposedbydefault = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment