Documention to docker labels

Hi,

is this documentation still valid?
https://docs.traefik.io/v1.7/configuration/backends/docker/#on-containers

I use the following docker image traefik:v2.1.1

Hello,

The labels of the v1 of Traefik are not compatible with v2.

Check the Traefik v2 documentation: https://docs.traefik.io/v2.1/routing/providers/docker/

My expectation is that I get HTTP --> HTTPS Forwards here with - "traefik.http.routers.home-assistant.tls=true"

---
version: '3'
services:
  home_assistent:
    image: homeassistant/home-assistant:stable
    network_mode: bridge
    hostname: homeassistent
    ports:
      - "8123:8123"
    volumes:
      - "./config:/config"
    labels:
        - "traefik.http.routers.home-assistant.rule=Host(`homeassistant.example.com`)"
        - "traefik.http.routers.home-assistant.tls=true"
        - "traefik.http.routers.home-assistant.tls.certresolver=route53"
        - "traefik.http.routers.home-assistant.tls.domains[0].main=homeassistant.example.com"
        - "traefik.http.services.home-assistant.loadbalancer.server.port=8123"

I already answered to this question a lot of time, so could you browse the forum to find an answer.

Recommend read:

1 Like

Thank you I will have a look on it.