rawmind0 / rancher-traefik

This image is the traefik dinamic conf for rancher. It comes from rawmind/rancher-tools.
68 stars 32 forks source link

rancher-traefik

This image is the traefik dynamic conf for rancher. It comes from rawmind/rancher-tools.

Build

docker build -t rawmind/rancher-traefik:<version> .

Versions

Usage

This image has to be run as a sidekick of rawmind/alpine-traefik, and makes available /opt/tools volume. It scans from rancher-metadata, looking for services and externalServices that have traefik labels and generates traefik frontend and backends to expose the services.

Configuration labels

Traefik labels have to be created in your service or externalService in order to get included in traefik dynamic config.

WARNING: Only services with healthy state are added to traefik, so health checks are mandatory.

Details for configuring the traefik rules can be found at: https://docs.traefik.io/basics/#frontends