SHARE
TWEET

Untitled

a guest Jun 25th, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. defaultEntryPoints = ["http", "https"]
  2.  
  3. [entryPoints]
  4.   [entryPoints.http]
  5.   address = ":80"
  6.     [entryPoints.http.redirect]
  7.     entryPoint = "https"
  8.   [entryPoints.https]
  9.   address = ":443"
  10.     [entryPoints.https.tls]
  11.       [[entryPoints.https.tls.certificates]]
  12.       certFile = "/etc/traefik/certs/server.crt"
  13.       keyFile = "/etc/traefik/certs/server.key"
  14.      
  15. services:
  16.   reverse-proxy:
  17.     image: traefik # The official Traefik docker image
  18.     command: --api --docker # Enables the web UI and tells Traefik to listen to docker
  19.     ports:
  20.       - "80:80"     # The HTTP port
  21.       - "8080:8080" # The Web UI (enabled by --api)
  22.     volumes:
  23.       - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
  24.       - /home/traefik/traefik.toml:/traefik.toml
  25.       - /home/traefik/certs:/etc/traefik/certs
  26.     networks:
  27.       - traefik-net
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top