Skip to content

A Rust service generating a Traefik Dynamic Config from running Docker containers.

Notifications You must be signed in to change notification settings

technophil98/traefik-docker-http-provider-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

traefik-docker-http-provider-server

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.

Configure it

Required env variables

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.

Docker Labels

See Routing Configuration with Labels from the Traefik & Docker section of Traefik's documentation.

Run it

Docker

docker run -p 8000:8000 --env-file .env ghcr.io/technophil98/traefik-docker-http-provider-server:latest

Locally

# 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

About

A Rust service generating a Traefik Dynamic Config from running Docker containers.

Resources

Stars

Watchers

Forks

Packages