Last active
April 30, 2019 07:18
-
-
Save mjhuber/b4b278fe9a04b4755f81ebea8c63caac to your computer and use it in GitHub Desktop.
[Traefik LetsEncrypt Example] #docker
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: '2' | |
services: | |
proxy: | |
image: traefik:latest | |
container_name: proxy | |
networks: | |
- frontend | |
restart: on-failure | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- ./traefik.toml:/traefik.toml | |
- ./acme.json:/acme.json | |
networks: | |
frontend: | |
external: | |
name: frontend |
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 = "INFO" | |
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 = "huberm.mywire.org" | |
watch = true | |
exposedbydefault = false | |
[acme] | |
email = "micah.huber@mailbox.org" | |
storage = "acme.json" | |
entryPoint = "https" | |
onDemand = true | |
onHostRule = true | |
acmeLogging = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment