A Rust service generating a Traefik Dynamic Config from running Docker containers marked with
traefik.http.*
labels.
This service was created to circumvent the no-duplicate-providers Traefik limitation.
traefik-docker-http-provider-server
requires the following env variable:
# The base url Traefik will use to route your services
# Watch out! The http:// prefix is required
BASE_URL=http://<my-host.local.domain>
You can create a .env
file with the previous content or export
them in your current shell.
See Routing Configuration with Labels from the Traefik & Docker section of Traefik's documentation.
docker run -p 8000:8000 --env-file .env ghcr.io/technophil98/traefik-docker-http-provider-server:latest
# Export variables in .env to current shell
set -o allexport; source .env; set +o allexport
# Run it! Will be accessible at 'localhost:8000'
cargo run