Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. this is how i run it:
  2. 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
  3.  
  4. this is the config:
  5. alpine:/podatki/traefik# more traefik.yaml
  6.  
  7. # Docker configuration backend
  8. ## Static configuration
  9. entryPoints:
  10. web:
  11. address: ":80"
  12. websecure:
  13. address: ":443"
  14.  
  15.  
  16. providers:
  17. docker: {}
  18.  
  19. # API and dashboard configuration
  20. api:
  21. insecure: true
  22. dashboard: true
  23.  
  24. log:
  25. level: DEBUG
  26.  
  27. # Configuring a buffer of 100 lines
  28. accessLog:
  29. filePath: "/certs/access.log"
  30. bufferingSize: 100
  31.  
  32.  
  33. http:
  34. services:
  35. ha:
  36. loadBalancer:
  37. servers:
  38. - url: "http://192.168.1.7:8123"
  39. unifi:
  40. loadBalancer:
  41. servers:
  42. - url: "http://192.168.1.7:8443"
  43. routers:
  44. ha:
  45. rule: "Host(`jckml.domain.com`) && Path(`/ha`)"
  46. service: ha
  47. # will terminate the TLS request
  48. unifi:
  49. rule: "Host(`jckml.domain.com`) && Path(`/unifi`)"
  50. service: unifi
  51. # will terminate the TLS request
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement