Skip to content

Instantly share code, notes, and snippets.

@gmaslowski
Last active March 22, 2018 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gmaslowski/088a3a335302a3e44a307b0562f4b567 to your computer and use it in GitHub Desktop.
Save gmaslowski/088a3a335302a3e44a307b0562f4b567 to your computer and use it in GitHub Desktop.
docker-swarm-config-files
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
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