Skip to content

Instantly share code, notes, and snippets.

@tcoupin
Last active October 30, 2018 20:21
Show Gist options
  • Save tcoupin/9559d0b73abae83ec76344c0614423ef to your computer and use it in GitHub Desktop.
Save tcoupin/9559d0b73abae83ec76344c0614423ef to your computer and use it in GitHub Desktop.
Article Traefik
version: "2.0"
services:
lb:
image: arm32v6/traefik:alpine
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /home/pi/rasp-workspace/conf/traefik:/etc/traefik
- /mnt/pi3/acme:/etc/acme
labels:
traefik.port: "8080"
networks:
- middle
restart: always
httpd:
image: arm32v7/httpd
labels:
traefik.port: "80"
traefik.frontend.rule: "Host:thibbo.duckdns.org"
depends_on:
- lb
networks:
- middle
restart: always
networks:
middle:
#debug= true
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[acme]
email = "thibault.coupin@gmail.com"
storage = "/etc/acme/acme.json"
entryPoint = "https"
onHostRule = true
acmeLogging = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
watch = true
domain= "thibbo.duckdns.org"
[file]
[backends]
[backends.backend-arduino]
[backends.backend-arduino.servers.server-arduino]
url = "http://192.168.90.123"
[frontends]
[frontends.frontend-arduino]
backend = "backend-arduino"
[frontends.frontend-arduino.routes.hostrule]
rule = "Host:arduino.thibbo.duckdns.org"
[web]
address = ":8080"
[web.auth.basic]
users = ["admin:motdepasse"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment