You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Dockerfile
FROM traefik:camembert-alpine

COPY traefik.toml /etc/traefik/traefik.toml
ENTRYPOINT ["traefik"]


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