Last active
May 3, 2019 11:32
-
-
Save danieldaeschle/02a7243eb82d8cc96ab60c90df25373d to your computer and use it in GitHub Desktop.
Traefik
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" | |
services: | |
helloworld: | |
image: tutum/hello-world | |
expose: | |
- "80" | |
labels: | |
- "traefik.domain=helloworld.example.com" |
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" | |
services: | |
reverse-proxy: | |
image: traefik:alpine | |
command: --logLevel="DEBUG" | |
network_mode: host | |
volumes: | |
- $PWD/traefik.toml:/etc/traefik/traefik.toml | |
- $PWD/acme.json:/etc/traefik/acme/acme.json | |
- /var/run/docker.sock:/var/run/docker.sock |
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
defaultEntryPoints = ["https", "http"] | |
[entryPoints] | |
[entryPoints.http] | |
address = ":80" | |
[entryPoints.http.redirect] | |
entryPoint = "https" | |
[entryPoints.https] | |
address = ":443" | |
[entryPoints.https.tls] | |
[entryPoints.dashboard] | |
address = ":8080" | |
[entryPoints.dashboard.auth] | |
[entryPoints.dashboard.auth.basic] | |
users = ["basicauthusernameandpassword"] | |
[acme] | |
email = "[email protected]" | |
entryPoint = "https" | |
storage = "/etc/traefik/acme/acme.json" | |
onHostRule = true | |
[acme.tlsChallenge] | |
[docker] | |
endpoint = "unix:///var/run/docker.sock" | |
watch = true | |
[api] | |
entrypoint = "dashboard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment