Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this is how i run it:
- docker run -d -p 8567:8080 -p 443:443 -p 80:80 -v /podatki/traefik:/etc/traefik -v /var/run/docker.sock:/var/run/docker.sock -v /podatki/traefik/certs/acme.json:/certs/acme.json -v /podatki/traefik/certs/access.log:/certs/access.log --name traefik traefik:v2.0
- this is the config:
- alpine:/podatki/traefik# more traefik.yaml
- # Docker configuration backend
- ## Static configuration
- entryPoints:
- web:
- address: ":80"
- websecure:
- address: ":443"
- providers:
- docker: {}
- # API and dashboard configuration
- api:
- insecure: true
- dashboard: true
- log:
- level: DEBUG
- # Configuring a buffer of 100 lines
- accessLog:
- filePath: "/certs/access.log"
- bufferingSize: 100
- http:
- services:
- ha:
- loadBalancer:
- servers:
- - url: "http://192.168.1.7:8123"
- unifi:
- loadBalancer:
- servers:
- - url: "http://192.168.1.7:8443"
- routers:
- ha:
- rule: "Host(`jckml.domain.com`) && Path(`/ha`)"
- service: ha
- # will terminate the TLS request
- unifi:
- rule: "Host(`jckml.domain.com`) && Path(`/unifi`)"
- service: unifi
- # will terminate the TLS request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement