Traefik is an open-source Application Proxy that automatically discovers and routes traffic to your services. It stands out for its native Docker integration and automatic service discovery capabilities, making it particularly powerful for container environments.
Preparation
Docker network
First, a Docker network should be created. This then eliminates the need to release ports for each individual service. Sufficient then are ports 80 and 443 for the proxy manager, as well as others in certain cases if necessary.
Create directory
Environment variables
Some environment variables are required to configure the Proxy Manager. A DNS challenge requires a domain from a supported provider.
In this case you need the domain, your customer number, the API key and the API password.
Create a .env file with your DNS provider credentials:
Installation
Authentication
A username / password combination is required for authentication.
Afterwards the middleware has to be adjusted:
Docker Compose
The installation is done via Docker Compose.
It may take a few minutes for traefik to load. Especially the DNS challenge can take a lot of time. Afterwards, the dashboard should be accessible under traefik.domain.de.
Other services
Another application can be connected to traefik via labels.
The page should now be accessible under homepage.domain.de.