Dockerfile
FROM traefik:camembert-alpine

COPY traefik.toml /etc/traefik/traefik.toml   #참조: http://wiki.thesanse.com/pages/viewpage.action?pageId=7340484
ENTRYPOINT ["traefik"]       #참조: http://wiki.thesanse.com/pages/viewpage.action?pageId=7340487


traefik.toml
logLevel = "INFO"

[web]
address = ":8080"

[entryPoints]
  [entryPoints.http]
    address = ":80"

[file]
  [backends]
    [backends.backend1]
      [backends.backend1.loadbalancer]
        method = "wrr"
        sticky = true
      [backends.backend1.servers.server1]
        url = "http://front-end:8079"

  [frontends]
    [frontends.frontend1]
      backend = "backend1"
      entrypoints = ["http"]

  • No labels
Write a comment…