├── .gitignore ├── version ├── .travis.yml ├── updatev2.sh ├── updatev1.sh ├── alpine ├── entrypoint.sh ├── tmplv1.Dockerfile ├── Dockerfile └── tmplv2.Dockerfile ├── scratch ├── Dockerfile ├── tmplv1.Dockerfile └── tmplv2.Dockerfile ├── windows └── 1809 │ ├── tmplv1.Dockerfile │ ├── Dockerfile │ └── tmplv2.Dockerfile ├── .ci └── test.sh ├── appveyor.yml ├── update.sh ├── CONTRIBUTING.md ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /version: -------------------------------------------------------------------------------- 1 | v2.3.0-rc5 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: bash 2 | services: docker 3 | 4 | git: 5 | depth: 1 6 | 7 | install: 8 | - git clone --depth 1 https://github.com/docker-library/official-images.git ~/official-images 9 | 10 | script: 11 | - ./.ci/test.sh -------------------------------------------------------------------------------- /updatev2.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | set -u # Exit on error when uninitialized variable 5 | 6 | if [ $# -eq 0 ] ; then 7 | echo "Usage: ./updatev2.sh " 8 | exit 9 | fi 10 | 11 | SCRIPT_DIRNAME_ABSOLUTEPATH="$(cd "$(dirname "$0")" && pwd -P)" 12 | 13 | echo "$1" > version 14 | 15 | bash "${SCRIPT_DIRNAME_ABSOLUTEPATH}/update.sh" "$1" 16 | -------------------------------------------------------------------------------- /updatev1.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | set -u # Exit on error when uninitialized variable 5 | 6 | if [ $# -eq 0 ] ; then 7 | echo "Usage: ./updatev1.sh " 8 | exit 9 | fi 10 | 11 | SCRIPT_DIRNAME_ABSOLUTEPATH="$(cd "$(dirname "$0")" && pwd -P)" 12 | 13 | echo "$1" > ./version 14 | 15 | bash "${SCRIPT_DIRNAME_ABSOLUTEPATH}/update.sh" "$1" 16 | -------------------------------------------------------------------------------- /alpine/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | # first arg is `-f` or `--some-option` 5 | if [ "${1#-}" != "$1" ]; then 6 | set -- traefik "$@" 7 | fi 8 | 9 | # if our command is a valid Traefik subcommand, let's invoke it through Traefik instead 10 | # (this allows for "docker run traefik version", etc) 11 | if traefik "$1" --help >/dev/null 2>&1 12 | then 13 | set -- traefik "$@" 14 | else 15 | echo "= '$1' is not a Traefik command: assuming shell execution." 1>&2 16 | fi 17 | 18 | exec "$@" 19 | -------------------------------------------------------------------------------- /scratch/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | COPY --from=traefik:v2.3.0-rc5-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ 3 | COPY --from=traefik:v2.3.0-rc5-alpine /usr/share/zoneinfo /usr/share/ 4 | COPY --from=traefik:v2.3.0-rc5-alpine /usr/local/bin/traefik / 5 | 6 | EXPOSE 80 7 | VOLUME ["/tmp"] 8 | ENTRYPOINT ["/traefik"] 9 | 10 | # Metadata 11 | LABEL org.opencontainers.image.vendor="Containous" \ 12 | org.opencontainers.image.url="https://traefik.io" \ 13 | org.opencontainers.image.title="Traefik" \ 14 | org.opencontainers.image.description="A modern reverse-proxy" \ 15 | org.opencontainers.image.version="v2.3.0-rc5" \ 16 | org.opencontainers.image.documentation="https://docs.traefik.io" 17 | -------------------------------------------------------------------------------- /scratch/tmplv1.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | COPY --from=traefik:${VERSION}-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ 3 | COPY --from=traefik:${VERSION}-alpine /usr/share/zoneinfo /usr/share/ 4 | COPY --from=traefik:${VERSION}-alpine /usr/local/bin/traefik / 5 | 6 | EXPOSE 80 7 | VOLUME ["/tmp"] 8 | ENTRYPOINT ["/traefik"] 9 | 10 | # Metadata 11 | LABEL org.opencontainers.image.vendor="Containous" \ 12 | org.opencontainers.image.url="https://traefik.io" \ 13 | org.opencontainers.image.title="Traefik" \ 14 | org.opencontainers.image.description="A modern reverse-proxy" \ 15 | org.opencontainers.image.version="$VERSION" \ 16 | org.opencontainers.image.documentation="https://docs.traefik.io" 17 | -------------------------------------------------------------------------------- /scratch/tmplv2.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | COPY --from=traefik:${VERSION}-alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ 3 | COPY --from=traefik:${VERSION}-alpine /usr/share/zoneinfo /usr/share/ 4 | COPY --from=traefik:${VERSION}-alpine /usr/local/bin/traefik / 5 | 6 | EXPOSE 80 7 | VOLUME ["/tmp"] 8 | ENTRYPOINT ["/traefik"] 9 | 10 | # Metadata 11 | LABEL org.opencontainers.image.vendor="Containous" \ 12 | org.opencontainers.image.url="https://traefik.io" \ 13 | org.opencontainers.image.title="Traefik" \ 14 | org.opencontainers.image.description="A modern reverse-proxy" \ 15 | org.opencontainers.image.version="$VERSION" \ 16 | org.opencontainers.image.documentation="https://docs.traefik.io" 17 | -------------------------------------------------------------------------------- /windows/1809/tmplv1.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/windows/servercore:1809 2 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 3 | 4 | RUN Invoke-WebRequest \ 5 | -Uri "https://github.com/containous/traefik/releases/download/${VERSION}/traefik_windows-amd64.exe" \ 6 | -OutFile "/traefik.exe" 7 | 8 | EXPOSE 80 9 | ENTRYPOINT [ "/traefik" ] 10 | 11 | # Metadata 12 | LABEL org.opencontainers.image.vendor="Containous" \ 13 | org.opencontainers.image.url="https://traefik.io" \ 14 | org.opencontainers.image.title="Traefik" \ 15 | org.opencontainers.image.description="A modern reverse-proxy" \ 16 | org.opencontainers.image.version="$VERSION" \ 17 | org.opencontainers.image.documentation="https://docs.traefik.io" 18 | -------------------------------------------------------------------------------- /.ci/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -Eeuo pipefail 4 | # set -x 5 | 6 | VERSION=$(cat version) 7 | 8 | API_OPTS="" 9 | if [[ ${VERSION} = v2* ]]; then 10 | API_OPTS="--api.insecure" 11 | fi 12 | 13 | TARGETS=( 14 | "traefik:${VERSION}-alpine!./alpine" 15 | "traefik:${VERSION}!./scratch" 16 | ) 17 | 18 | for target in ${TARGETS[@]}; do 19 | image="${target%%!*}" 20 | path="${target##*!}" 21 | echo "#### Testing image: ${image}" 22 | 23 | docker build -t "${image}" "${path}" 24 | # Docker Official Library Tests 25 | ~/official-images/test/run.sh "$image" 26 | # Smoke Test of the image 27 | docker run --name lb -d -p 8080:8080 "${image}" --api "${API_OPTS}" 28 | sleep 2 29 | docker ps 30 | curl --verbose --fail http://localhost:8080 31 | docker rm -f lb 32 | done 33 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | version: 1.0.{build} 2 | 3 | platform: x64 4 | 5 | # `git clone` takes ages due to the repo's size 6 | shallow_clone: true 7 | 8 | image: "Windows Server 2019" 9 | 10 | environment: 11 | matrix: 12 | - PLATFORM: windows-1809 13 | PLATFORM_DIR: ./windows/1809/ 14 | 15 | 16 | matrix: 17 | fast_finish: true 18 | 19 | build_script: 20 | - ps: | 21 | $ErrorActionPreference = 'Stop' # Fail if any instruction fails 22 | $version = Get-Content .\version -Raw 23 | $api_opts = '' 24 | if($version.StartsWith('v2')) { 25 | $api_opts='--api.insecure' 26 | } 27 | docker build -t traefik:$env:PLATFORM $env:PLATFORM_DIR 28 | docker run --name lb -d -p 8080:8080 traefik:$env:PLATFORM --api $api_opts 29 | sleep 2 30 | docker ps 31 | Invoke-WebRequest -Uri http://localhost:8080 -TimeoutSec 60 32 | -------------------------------------------------------------------------------- /windows/1809/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/windows/servercore:1809 2 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 3 | 4 | RUN Invoke-WebRequest \ 5 | -Uri "https://github.com/containous/traefik/releases/download/v2.3.0-rc5/traefik_v2.3.0-rc5_windows_amd64.zip" \ 6 | -OutFile "/traefik.zip"; \ 7 | Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \ 8 | Remove-Item "/traefik.zip" -Force 9 | 10 | EXPOSE 80 11 | ENTRYPOINT [ "/traefik" ] 12 | 13 | # Metadata 14 | LABEL org.opencontainers.image.vendor="Containous" \ 15 | org.opencontainers.image.url="https://traefik.io" \ 16 | org.opencontainers.image.title="Traefik" \ 17 | org.opencontainers.image.description="A modern reverse-proxy" \ 18 | org.opencontainers.image.version="v2.3.0-rc5" \ 19 | org.opencontainers.image.documentation="https://docs.traefik.io" 20 | -------------------------------------------------------------------------------- /windows/1809/tmplv2.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mcr.microsoft.com/windows/servercore:1809 2 | SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] 3 | 4 | RUN Invoke-WebRequest \ 5 | -Uri "https://github.com/containous/traefik/releases/download/${VERSION}/traefik_${VERSION}_windows_amd64.zip" \ 6 | -OutFile "/traefik.zip"; \ 7 | Expand-Archive -Path "/traefik.zip" -DestinationPath "/" -Force; \ 8 | Remove-Item "/traefik.zip" -Force 9 | 10 | EXPOSE 80 11 | ENTRYPOINT [ "/traefik" ] 12 | 13 | # Metadata 14 | LABEL org.opencontainers.image.vendor="Containous" \ 15 | org.opencontainers.image.url="https://traefik.io" \ 16 | org.opencontainers.image.title="Traefik" \ 17 | org.opencontainers.image.description="A modern reverse-proxy" \ 18 | org.opencontainers.image.version="$VERSION" \ 19 | org.opencontainers.image.documentation="https://docs.traefik.io" 20 | -------------------------------------------------------------------------------- /alpine/tmplv1.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:$ALPINE_VERSION 2 | RUN apk --no-cache add ca-certificates tzdata 3 | RUN set -ex; \ 4 | apkArch="$(apk --print-arch)"; \ 5 | case "$apkArch" in \ 6 | armhf) arch='arm' ;; \ 7 | aarch64) arch='arm64' ;; \ 8 | x86_64) arch='amd64' ;; \ 9 | *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ 10 | esac; \ 11 | wget --quiet -O /usr/local/bin/traefik "https://github.com/containous/traefik/releases/download/$VERSION/traefik_linux-$arch"; \ 12 | chmod +x /usr/local/bin/traefik 13 | COPY entrypoint.sh / 14 | EXPOSE 80 15 | ENTRYPOINT ["/entrypoint.sh"] 16 | CMD ["traefik"] 17 | 18 | # Metadata 19 | LABEL org.opencontainers.image.vendor="Containous" \ 20 | org.opencontainers.image.url="https://traefik.io" \ 21 | org.opencontainers.image.title="Traefik" \ 22 | org.opencontainers.image.description="A modern reverse-proxy" \ 23 | org.opencontainers.image.version="$VERSION" \ 24 | org.opencontainers.image.documentation="https://docs.traefik.io" 25 | -------------------------------------------------------------------------------- /alpine/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.11 2 | RUN apk --no-cache add ca-certificates tzdata 3 | RUN set -ex; \ 4 | apkArch="$(apk --print-arch)"; \ 5 | case "$apkArch" in \ 6 | armhf) arch='armv6' ;; \ 7 | aarch64) arch='arm64' ;; \ 8 | x86_64) arch='amd64' ;; \ 9 | *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ 10 | esac; \ 11 | wget --quiet -O /tmp/traefik.tar.gz "https://github.com/containous/traefik/releases/download/v2.3.0-rc5/traefik_v2.3.0-rc5_linux_$arch.tar.gz"; \ 12 | tar xzvf /tmp/traefik.tar.gz -C /usr/local/bin traefik; \ 13 | rm -f /tmp/traefik.tar.gz; \ 14 | chmod +x /usr/local/bin/traefik 15 | COPY entrypoint.sh / 16 | EXPOSE 80 17 | ENTRYPOINT ["/entrypoint.sh"] 18 | CMD ["traefik"] 19 | 20 | # Metadata 21 | LABEL org.opencontainers.image.vendor="Containous" \ 22 | org.opencontainers.image.url="https://traefik.io" \ 23 | org.opencontainers.image.title="Traefik" \ 24 | org.opencontainers.image.description="A modern reverse-proxy" \ 25 | org.opencontainers.image.version="v2.3.0-rc5" \ 26 | org.opencontainers.image.documentation="https://docs.traefik.io" 27 | -------------------------------------------------------------------------------- /alpine/tmplv2.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:$ALPINE_VERSION 2 | RUN apk --no-cache add ca-certificates tzdata 3 | RUN set -ex; \ 4 | apkArch="$(apk --print-arch)"; \ 5 | case "$apkArch" in \ 6 | armhf) arch='armv6' ;; \ 7 | aarch64) arch='arm64' ;; \ 8 | x86_64) arch='amd64' ;; \ 9 | *) echo >&2 "error: unsupported architecture: $apkArch"; exit 1 ;; \ 10 | esac; \ 11 | wget --quiet -O /tmp/traefik.tar.gz "https://github.com/containous/traefik/releases/download/${VERSION}/traefik_${VERSION}_linux_$arch.tar.gz"; \ 12 | tar xzvf /tmp/traefik.tar.gz -C /usr/local/bin traefik; \ 13 | rm -f /tmp/traefik.tar.gz; \ 14 | chmod +x /usr/local/bin/traefik 15 | COPY entrypoint.sh / 16 | EXPOSE 80 17 | ENTRYPOINT ["/entrypoint.sh"] 18 | CMD ["traefik"] 19 | 20 | # Metadata 21 | LABEL org.opencontainers.image.vendor="Containous" \ 22 | org.opencontainers.image.url="https://traefik.io" \ 23 | org.opencontainers.image.title="Traefik" \ 24 | org.opencontainers.image.description="A modern reverse-proxy" \ 25 | org.opencontainers.image.version="$VERSION" \ 26 | org.opencontainers.image.documentation="https://docs.traefik.io" 27 | -------------------------------------------------------------------------------- /update.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | set -u # Exit on error when uninitialized variable 5 | 6 | if [ $# -eq 0 ] ; then 7 | echo "Usage: ./update.sh " 8 | exit 9 | fi 10 | 11 | export VERSION=$1 12 | export ALPINE_VERSION=3.11 13 | PLATFORMS=( 14 | "alpine" 15 | "scratch" 16 | "windows/1809" 17 | ) 18 | 19 | SCRIPT_DIRNAME_ABSOLUTEPATH="$(cd "$(dirname "$0")" && pwd -P)" 20 | 21 | # cd to the current directory so the script can be run from anywhere. 22 | pushd "${SCRIPT_DIRNAME_ABSOLUTEPATH}" 23 | 24 | for PLATFORM in "${PLATFORMS[@]}" ; do 25 | PLATFORM_DIR="${SCRIPT_DIRNAME_ABSOLUTEPATH}/${PLATFORM}" 26 | [ -d "${PLATFORM_DIR}" ] || ( echo "= No directory found for ${PLATFORM_DIR}" && exit 1) 27 | 28 | echo "= Generating Dockerfile for platform ${PLATFORM}" 29 | 30 | rm -f "${PLATFORM_DIR}/Dockerfile" 31 | # the version of the template is determined by the 2 first chars of the Traefik version passed as argument to this script 32 | envsubst \$ALPINE_VERSION,\$VERSION < "${PLATFORM_DIR}/tmpl${VERSION:0:2}.Dockerfile" > "${PLATFORM_DIR}/Dockerfile" 33 | 34 | done 35 | 36 | echo "= All Dockerfiles updated." 37 | popd # Browse back to caller dirname 38 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | See . 4 | 5 | ## Why a separated repository? 6 | 7 | The goal is to have a Docker's official image, 8 | which includes following instructions from 9 | . 10 | 11 | One of the key points is the combination of 12 | 13 | and , 14 | which makes a requirement to commit Traefik's binaries inside the repository. 15 | 16 | Then, to avoid slowing down the main 17 | [Traefik's repository](https://github.com/containous/traefik), 18 | a separated repository is required. 19 | 20 | ## How do you release? 21 | 22 | ### Step 1: Traefik release 23 | 24 | The script `update.sh` is called with the Traefik's version to use 25 | as argument: 26 | 27 | ```shell 28 | bash ./update.sh v1.7.0-rc 29 | ``` 30 | 31 | This call is done by the main release process here: 32 | . 33 | 34 | ### Step 2: Pull Request to the official Docker Library 35 | 36 | This step is done by an internal bot at Containous. 37 | It is in charge of automating creation of Pull Requests against . 38 | 39 | Example of automated Pull Request: . 40 | 41 | ## More 42 | 43 | [![Official Image Tests (alpine)](https://travis-ci.com/containous/traefik-library-image.svg?branch=master)](https://travis-ci.com/containous/traefik-library-image) 44 | [![appveyor Build status](https://ci.appveyor.com/api/projects/status/ahndudkeca1g7qf8/branch/master?svg=true)](https://ci.appveyor.com/project/traefiker/traefik-library-image/branch/master) 45 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![logo](https://raw.githubusercontent.com/docker-library/docs/a6cc2c5f4bc6658168f2a0abbb0307acaefff80e/traefik/logo.png) 2 | 3 | [Traefik](https://traefik.io) is a modern HTTP reverse proxy and load balancer that makes deploying microservices easy. 4 | 5 | Traefik integrates with your existing infrastructure components ([Docker](https://www.docker.com/), [Swarm mode](https://docs.docker.com/engine/swarm/), [Kubernetes](https://kubernetes.io), [Marathon](https://mesosphere.github.io/marathon/), [Consul](https://www.consul.io/), [Etcd](https://coreos.com/etcd/), [Rancher](https://rancher.com), [Amazon ECS](https://aws.amazon.com/ecs), ...) and configures itself automatically and dynamically. 6 | 7 | Pointing Traefik at your orchestrator should be the *only* configuration step you need. 8 | 9 | # Traefik v2 - Example usage 10 | 11 | Enable `docker` provider and web UI: 12 | 13 | ```yml 14 | ## traefik.yml 15 | 16 | # Docker configuration backend 17 | providers: 18 | docker: 19 | defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)" 20 | 21 | # API and dashboard configuration 22 | api: 23 | insecure: true 24 | ``` 25 | 26 | Start Traefik: 27 | 28 | ```bash 29 | docker run -d -p 8080:8080 -p 80:80 \ 30 | -v $PWD/traefik.yml:/etc/traefik/traefik.yml \ 31 | -v /var/run/docker.sock:/var/run/docker.sock \ 32 | traefik:v2.0 33 | ``` 34 | 35 | Start a backend server, named `test`: 36 | 37 | ```bash 38 | docker run -d --name test containous/whoami 39 | ``` 40 | 41 | And finally, you can access to your `whoami` server throught Traefik, on the domain name `test.docker.localhost`: 42 | 43 | ```console 44 | # $ curl --header 'Host:test.docker.localhost' 'http://localhost:80/' 45 | $ curl test.docker.localhost 46 | Hostname: 390a880bdfab 47 | IP: 127.0.0.1 48 | IP: 172.17.0.3 49 | GET / HTTP/1.1 50 | Host: test.docker.localhost 51 | User-Agent: curl/7.65.3 52 | Accept: */* 53 | Accept-Encoding: gzip 54 | X-Forwarded-For: 172.17.0.1 55 | X-Forwarded-Host: test.docker.localhost 56 | X-Forwarded-Port: 80 57 | X-Forwarded-Proto: http 58 | X-Forwarded-Server: 7e073cb54211 59 | X-Real-Ip: 172.17.0.1 60 | ``` 61 | 62 | The web UI [http://localhost:8080](http://localhost:8080) will give you an overview of the routers, services, and middlewares. 63 | 64 | ![Web UI](https://raw.githubusercontent.com/containous/traefik/v2.0/docs/content/assets/img/webui-dashboard.png) 65 | 66 | # Traefik v1 - Example usage 67 | 68 | Grab a [sample configuration file](https://raw.githubusercontent.com/containous/traefik/v1.7/traefik.sample.toml) and rename it to `traefik.toml`. Enable `docker` provider and web UI: 69 | 70 | ```toml 71 | ## traefik.toml 72 | 73 | # API and dashboard configuration 74 | [api] 75 | 76 | # Docker configuration backend 77 | [docker] 78 | domain = "docker.localhost" 79 | ``` 80 | 81 | Start Traefik: 82 | 83 | ```bash 84 | docker run -d -p 8080:8080 -p 80:80 \ 85 | -v $PWD/traefik.toml:/etc/traefik/traefik.toml \ 86 | -v /var/run/docker.sock:/var/run/docker.sock \ 87 | traefik:v1.7 88 | ``` 89 | 90 | Start a backend server, named `test`: 91 | 92 | ```bash 93 | docker run -d --name test containous/whoami 94 | ``` 95 | 96 | And finally, you can access to your `whoami` server throught Traefik, on the domain name `{containerName}.{configuredDomain}` (`test.docker.localhost`): 97 | 98 | ```console 99 | # $ curl --header 'Host:test.docker.localhost' 'http://localhost:80/' 100 | $ curl 'http://test.docker.localhost' 101 | Hostname: 117c5530934d 102 | IP: 127.0.0.1 103 | IP: ::1 104 | IP: 172.17.0.3 105 | IP: fe80::42:acff:fe11:3 106 | GET / HTTP/1.1 107 | Host: test.docker.localhost 108 | User-Agent: curl/7.35.0 109 | Accept: */* 110 | Accept-Encoding: gzip 111 | X-Forwarded-For: 172.17.0.1 112 | X-Forwarded-Host: 172.17.0.3:80 113 | X-Forwarded-Proto: http 114 | X-Forwarded-Server: f2e05c433120 115 | ``` 116 | 117 | The web UI [http://localhost:8080](http://localhost:8080) will give you an overview of the frontends/backends and also a health dashboard. 118 | 119 | ![Web UI Providers](https://raw.githubusercontent.com/containous/traefik/v1.7/docs/img/web.frontend.png) 120 | 121 | # Documentation 122 | 123 | You can find the complete documentation: 124 | 125 | - for [v1.7](https://docs.traefik.io/v1.7) 126 | - for [v2.0](https://docs.traefik.io/v2.0) 127 | 128 | A community support is available at [https://community.containo.us](https://community.containo.us) 129 | 130 | A collection of contributions around Traefik can be found at [https://awesome.traefik.io](https://awesome.traefik.io). 131 | 132 | # Image Variants 133 | 134 | The `traefik` images come in many flavors, each designed for a specific use case. 135 | 136 | ## `traefik:` 137 | 138 | This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of. 139 | 140 | ## `traefik:-windowsservercore` 141 | 142 | This image is based on [Windows Server Core (`microsoft/windowsservercore`)](https://hub.docker.com/r/microsoft/windowsservercore/). As such, it only works in places which that image does, such as Windows 10 Professional/Enterprise (Anniversary Edition) or Windows Server 2016. 143 | 144 | For information about how to get Docker running on Windows, please see the relevant "Quick Start" guide provided by Microsoft: 145 | 146 | - [Windows Server Quick Start](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server) 147 | - [Windows 10 Quick Start](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_10) 148 | 149 | # License 150 | 151 | View [license information](https://github.com/containous/traefik/blob/master/LICENSE.md) for the software contained in this image. 152 | 153 | As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained). 154 | 155 | Some additional license information which was able to be auto-detected might be found in [the `repo-info` repository's `traefik/` directory](https://github.com/docker-library/repo-info/tree/master/repos/traefik). 156 | 157 | As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within. 158 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2017 Containous 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | --------------------------------------------------------------------------------