Skip to main content

Docker

Install and configure Traefik Hub API Gateway.


Before You Begin

It is recommended that you have a basic understanding of Docker. You should have access to a working Docker daemon, either on a cloud provider or on your own infrastructure.

Please make sure that you have the following:

  • Docker cli
  • Checked the documentation about networking details to make sure that the Traefik Hub API Gateway can communicate with Traefik Hub to validate the token.

To install Traefik Hub API Gateway, copy and paste the following Docker compose file instructions. This will install Traefik Hub API Gateway.

Install Traefik Hub API Gateway
version: '3.8'

services:
hub:
image: ghcr.io/traefik/traefik-hub:v3.0
command:
- --providers.docker
- --hub.token=YOUR-TRAEFIK-HUB-TOKEN
volumes:
- /var/run/docker.sock:/var/run/docker.sock
  • YOUR-TRAEFIK-HUB-TOKEN: Your token provided by Traefik Labs

Migrating from Traefik Proxy

To migrate from Traefik Proxy, change the Traefik docker image by ghcr.io/traefik/traefik-hub:v3.0 and add the following command parameter:

--hub.token=YOUR-TRAEFIK-HUB-TOKEN
  • YOUR-TRAEFIK-HUB-TOKEN: Your token provided by Traefik Labs