# Docker Label for Entrypoint not honored

**URL:** <https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174>\
**Category:** Traefik v2\
**Tags:** middleware, docker\
**Created:** [January 17, 2023, 7:41pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174 "2023-01-17T19:41:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tormentz](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Tormentz](https://community.traefik.io/u/Tormentz)\
**Post date:** [January 17, 2023, 7:41pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/1 "2023-01-17T19:41:09Z")

</div>

Hello Everyone!

Traefik version 2.9.6.

The issue I'm having is I have a docker label that doesn't appear to be getting honored, and I'm not 100% sure why.

I have this occurring to three different docker compose files for three different services, so I'll share one of them here.

```yaml
version: '3.5'
services:
  jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    networks:
      - proxy
    volumes:
      - "$APP_HOME/config:/config"
      - "$APP_HOME/cache:/cache"
      - "/media/media:/media"
    restart: 'unless-stopped'
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.$APP_NAME.entrypoints=http"
      - "traefik.http.routers.$APP_NAME.rule=Host(`$APP_NAME.local.domain.com`)"
      - "traefik.http.middlewares.$APP_NAME-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.$APP_NAME.middlewares=$APP_NAME-https-redirect"
      - "traefik.http.routers.$APP_NAME-secure.entrypoints=https"
      - "traefik.http.routers.$APP_NAME-secure.rule=Host(`$APP_NAME.local.domain.com`)"
      - "traefik.http.routers.$APP_NAME-secure.tls=true"
      - "traefik.http.routers.$APP_NAME-secure.service=$APP_NAME"
      - "traefik.http.services.$APP_NAME.loadbalancer.server.port=8096"
      - "traefik.http.routers.$APP_NAME-external.entrypoints=http"
      - "traefik.http.routers.$APP_NAME-external.rule=Host(`$APP_NAME.domain.com`)"
      - "traefik.http.middlewares.$APP_NAME-external-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.$APP_NAME-external.middlewares=$APP_NAME-external-https-redirect"
      - "traefik.http.routers.$APP_NAME-external-secure.entrypoints=https"
      - "traefik.http.routers.$APP_NAME-external-secure.rule=Host(`$APP_NAME.domain.com`)"
      - "traefik.http.routers.$APP_NAME-external-secure.tls=true"
      - "traefik.http.routers.$APP_NAME-external-secure.service=$APP_NAME-external"
      - "traefik.http.services.$APP_NAME-external.loadbalancer.server.port=8096"
      - "traefik.docker.network=proxy"

      
networks:
  proxy:
    external: true

```

This is what the Traefik dashboard shows for routers:

 ![Screenshot 2023-01-17 143527](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/3/3277f6c85c7e1c0edb9080f954691ebf662cc11a.png)

This is what the Traefik dashboard shows for middlewares:

 ![Screenshot 2023-01-17 143842](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/2/28c349099a67a2e245eb908be88a0a72bb236af6.png)

As you can see, both HTTP entry points are not active.

Is there something I am misusing that is causing this?

Thank you for any responses!

---

<div class="post-metadata">

**Author:** ![Tormentz](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Tormentz](https://community.traefik.io/u/Tormentz)\
**Post date:** [January 17, 2023, 7:42pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/2 "2023-01-17T19:42:29Z")

</div>

I am running this out of portainer, so I am subbing the EnvVar in this docker compose for a different value.  
These are the labels that portainer sees (domain obscured.)

 ![Screenshot 2023-01-17 143038](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/e/ee310d0d7dcdf7b7912f53cd3c2e568d906a9d46.png)

(Sorry for the second post, however as I am a new user, limited to two screenshots to a post.)

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [January 17, 2023, 8:02pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/3 "2023-01-17T20:02:00Z")

</div>

Can you share your full Traefik static and dynamic config, and `docker-compose.yml` if used?

Furthermore, enable [Traefik debug log](https://doc.traefik.io/traefik/observability/logs/#level) and check for "error".

---

<div class="post-metadata">

**Author:** ![Tormentz](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Tormentz](https://community.traefik.io/u/Tormentz)\
**Post date:** [January 17, 2023, 9:01pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/5 "2023-01-17T21:01:18Z")

</div>

Unfortunately my post was flagged for an admin review when I tried to post what was asked for, hopefully that will be approved in the next 24 hours or so. Thank you for your assistance.

Debug log does have an error that appears to be related: "Could not define the service name for the router: too many services"

---

<div class="post-metadata">

**Author:** ![Tormentz](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@Tormentz](https://community.traefik.io/u/Tormentz)\
**Post date:** [January 17, 2023, 9:36pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/6 "2023-01-17T21:36:49Z")

</div>

The above error occurs because of two services being defined for the same target port. By changing the above labels to the following it will correct the issue.

```yaml
labels:
      - "traefik.enable=true"
      - "traefik.http.routers.$APP_NAME.entrypoints=http"
      - "traefik.http.routers.$APP_NAME.rule=Host(`$APP_NAME.local.domain.com`)"
      - "traefik.http.middlewares.$APP_NAME-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.$APP_NAME.middlewares=$APP_NAME-https-redirect"
      - "traefik.http.routers.$APP_NAME-secure.entrypoints=https"
      - "traefik.http.routers.$APP_NAME-secure.rule=Host(`$APP_NAME.local.domain.com`)"
      - "traefik.http.routers.$APP_NAME-secure.tls=true"
      - "traefik.http.routers.$APP_NAME-secure.service=$APP_NAME"
      - "traefik.http.services.$APP_NAME.loadbalancer.server.port=8096"
      - "traefik.http.routers.$APP_NAME-external.entrypoints=http"
      - "traefik.http.routers.$APP_NAME-external.rule=Host(`$APP_NAME.domain.com`)"
      - "traefik.http.middlewares.$APP_NAME-external-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.$APP_NAME-external.middlewares=$APP_NAME-external-https-redirect"
      - "traefik.http.routers.$APP_NAME-external-secure.entrypoints=https"
      - "traefik.http.routers.$APP_NAME-external-secure.rule=Host(`$APP_NAME.domain.com`)"
      - "traefik.http.routers.$APP_NAME-external-secure.tls=true"
      - "traefik.http.routers.$APP_NAME-external-secure.service=$APP_NAME"
      - "traefik.docker.network=proxy"

```

This can be closed. Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [January 20, 2023, 9:37pm UTC](https://community.traefik.io/t/docker-label-for-entrypoint-not-honored/17174/7 "2023-01-20T21:37:10Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
