# Can not access dashboard with traefik in docker swarm

**URL:** <https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722>\
**Category:** Traefik v2\
**Tags:** letsencrypt-acme\
**Created:** [September 10, 2021, 7:53am UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722 "2021-09-10T07:53:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 7:53am UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/1 "2021-09-10T07:53:45Z")

</div>

I am unable to access the dashboard with the following `docker-compose.yaml`

```auto
version: '3.9'

services:
  traefik:
    image: traefik:v2.4
    ports:
      - target: 80
        published: 80
        mode: host
      - target: 443
        published: 443
        mode: host
      - target: 8080
        published: 8080
        mode: host
    deploy:
      placement:
        constraints:
          - node.labels.traefik.traefik-certificates == true

    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - traefik-certificates:/certificates
    env_file:
      - ./.env.traefik
    command:
      - "--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--providers.docker.swarmMode=true"
      - "--entrypoints.http.address=:80"
      - "--entrypoints.https.address=:443"
      - "--certificatesresolvers.le.acme.dnschallenge=true"
      - "--certificatesresolvers.le.acme.dnschallenge.provider=cloudflare"
      - "--certificatesresolvers.le.acme.email=first.last@email.com"
      - "--certificatesresolvers.le.acme.storage=/certificates/acme.json"
      - "--log.level=DEBUG"
      - "--accesslog=true"
      - "--api=true"
      - "--api.dashboard=true"
      - "traefik.enable=true"
      - "traefik.docker.network=traefik"
      - "traefik.constraint-label=traefik"
      #- "traefik.http.routers.traefik-http.rule=Host(`proxy.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
      - "traefik.http.routers.traefik-http.rule=Host(`proxy.example.com`)"
      - "traefik.http.routers.traefik-http.entrypoints=http"
      - "traefik.http.routers.traefik-http.middlewares=https-redirect"
      - "traefik.http.routers.traefik-https.middlewares=admin-auth"
      - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
      - "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
      - "traefik.http.middlewares.admin-auth.basicauth.users=test1:$$apr1$$rd0qto3i$$mWrcrfrRfrEkgPVZ3w1,test2:$$apr1$$1smybfkx$$qsrcrfTyejEn12LKmbNMC."
      #- "traefik.http.routers.traefik-https.rule=Host(`proxy.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
      - "traefik.http.routers.traefik-https.rule=Host(`proxy.example.com`)"
      - "traefik.http.routers.traefik-https.entrypoints=https"
      - "traefik.http.routers.traefik-https.tls=true"
      - "traefik.http.routers.traefik-https.service=api@internal"
      - "traefik.http.routers.traefik-https.tls.certresolver=le"
      - "traefik.http.services.traefik.loadbalancer.server.port=8080"
    networks:
      - traefik_network

volumes:
  traefik-certificates:

networks:
  traefik_network:
    external: 
      name: traefik_network

```

letsencrypt works fine but here are the few issues going on

1. redirect from http to https not working

2. can not access dashboard on `proxy.example.com` or `proxy.example.com/dashboard` or `proxy.example.com:8080/dashboard` everything all showing `404` page

what do i have wrong and how do i fix?

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 11:25am UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/2 "2021-09-10T11:25:23Z")

</div>

Hi @decypher_the_world

You have put all the label in the `command:` block instead of under `labels:`

It looks okay to me once you have done that. If you intend to be https only then using entrypoint redirection will reduce the amount of labels you are using.

[https://doc.traefik.io/traefik/routing/entrypoints/#redirection](https://doc.traefik.io/traefik/routing/entrypoints/#redirection)

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 12:03pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/3 "2021-09-10T12:03:59Z")

</div>

i had them separate and had same issue...so am not sure if its because of command with label  
i ended up combining them because that worked in a docker setup i had, but this is docker swarm

i will split back to command and labels and repost with same issue

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 12:18pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/4 "2021-09-10T12:18:18Z")

</div>

ok here is `command` and `labels` split and same error

```auto
version: '3.9'

services:
  traefik:
    image: traefik:v2.4
    ports:
      - target: 80
        published: 80
        mode: host
      - target: 443
        published: 443
        mode: host
      - target: 8080
        published: 8080
        mode: host
    deploy:
      placement:
        constraints:
          - node.labels.traefik.traefik-certificates == true

    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - traefik-certificates:/certificates
    env_file:
      - ./.env.traefik
    command:
      - "--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--providers.docker.swarmMode=true"
      - "--entrypoints.http.address=:80"
      - "--entrypoints.https.address=:443"
      - "--certificatesresolvers.le.acme.dnschallenge=true"
      - "--certificatesresolvers.le.acme.dnschallenge.provider=cloudflare"
      - "--certificatesresolvers.le.acme.email=first.last@email.com"
      - "--certificatesresolvers.le.acme.storage=/certificates/acme.json"
      - "--log.level=DEBUG"
      - "--accesslog=true"
      - "--api=true"
      - "--api.dashboard=true"
    labels:
      - "traefik.enable=true"
      - "traefik.docker.network=traefik_network"
      - "traefik.constraint-label=traefik"
      #- "traefik.http.routers.traefik-http.rule=Host(`proxy.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
      - "traefik.http.routers.traefik-http.rule=Host(`proxy.example.com`)"
      - "traefik.http.routers.traefik-http.entrypoints=http"
      - "traefik.http.routers.traefik-http.middlewares=https-redirect"
      - "traefik.http.routers.traefik-https.middlewares=admin-auth"
      - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
      - "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
      - "traefik.http.middlewares.admin-auth.basicauth.users=test1:$$apr1$$rd0qto3i$$mWrcrfrRfrEkgPVZ3w1,test2:$$apr1$$1smybfkx$$qsrcrfTyejEn12LKmbNMC."
      #- "traefik.http.routers.traefik-https.rule=Host(`proxy.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))"
      - "traefik.http.routers.traefik-https.rule=Host(`proxy.example.com`)"
      - "traefik.http.routers.traefik-https.entrypoints=https"
      - "traefik.http.routers.traefik-https.tls=true"
      - "traefik.http.routers.traefik-https.service=api@internal"
      - "traefik.http.routers.traefik-https.tls.certresolver=le"
      - "traefik.http.services.traefik.loadbalancer.server.port=8080"
    networks:
      - traefik_network

volumes:
  traefik-certificates:

networks:
  traefik_network:
    external: 
      name: traefik_network

```

here are other details

```auto
# docker service ls

ID NAME MODE REPLICAS IMAGE PORTS
yxmg1s9jho81 traefik_traefik replicated 1/1 traefik:v2.4

# docker service ps traefik_traefik

ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
r8kc69tjagxx traefik_traefik.1 traefik:v2.4 swarm-00 Running Running about a minute ago *:443->443/tcp,*:443->443/tcp,*:80->80/tcp,*:80->80/tcp,*:8080->8080/tcp,*:8080->8080/tcp

# docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
cf6c53466dd9 traefik:v2.4 "/entrypoint.sh '--p…" 4 minutes ago Up 4 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp traefik_traefik.1.r8kc69tjagxxw0evpv1500tul

```

and some of the logs

```auto
# docker service logs -f traefik_traefik

| time="2021-09-10T12:15:29Z" level=info msg="Skipping same configuration" providerName=docker
| time="2021-09-10T12:15:44Z" level=debug msg="Filtering disabled container" providerName=docker container=traefik-traefik-r8kc69tjagxxw0evpv1500tul
| time="2021-09-10T12:15:44Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T12:15:44Z" level=info msg="Skipping same configuration" providerName=docker
| time="2021-09-10T12:15:59Z" level=debug msg="Filtering disabled container" providerName=docker container=traefik-traefik-r8kc69tjagxxw0evpv1500tul
| time="2021-09-10T12:15:59Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T12:15:59Z" level=info msg="Skipping same configuration" providerName=docker
| time="2021-09-10T12:16:14Z" level=debug msg="Filtering disabled container" providerName=docker container=traefik-traefik-r8kc69tjagxxw0evpv1500tul
| time="2021-09-10T12:16:14Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T12:16:14Z" level=info msg="Skipping same configuration" providerName=docker
| time="2021-09-10T12:16:29Z" level=debug msg="Filtering disabled container" container=traefik-traefik-r8kc69tjagxxw0evpv1500tul providerName=docker
| time="2021-09-10T12:16:29Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T12:16:29Z" level=info msg="Skipping same configuration" providerName=docker
| time="2021-09-10T12:16:44Z" level=debug msg="Filtering disabled container" providerName=docker container=traefik-traefik-r8kc69tjagxxw0evpv1500tul
| time="2021-09-10T12:16:44Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T12:16:44Z" level=info msg="Skipping same configuration" providerName=docker

```

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 1:48pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/5 "2021-09-10T13:48:52Z")

</div>

I'm pretty sure this is going to be related to the `--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)`

Can you test without it? I've only really tried it once, and I think that was without swarm mode.

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 1:55pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/6 "2021-09-10T13:55:33Z")

</div>

ok will try with that

by the way following this setup, not exactly same but that is what am following  
[https://dockerswarm.rocks/traefik/](https://dockerswarm.rocks/traefik/)

you can see `--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)` under the **Getting the client IP** section

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 2:00pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/7 "2021-09-10T14:00:28Z")

</div>

ok commented `--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)` and still 404  
i am seeing requests made in logs so certainly the routing works, just not sure why dashboard or anything is not working

```auto
# docker service logs -f traefik_traefik

| time="2021-09-10T13:57:52Z" level=debug msg="Configuration received from provider docker: {\"http\":{},\"tcp\":{},\"udp\":{}}" providerName=docker
| time="2021-09-10T13:57:52Z" level=info msg="Skipping same configuration" providerName=docker
| 172.18.0.1 - - [10/Sep/2021:13:57:53 +0000] "GET / HTTP/2.0" - - "-" "-" 1 "-" "-" 0ms
| 172.18.0.1 - - [10/Sep/2021:13:57:58 +0000] "GET /dashboard HTTP/2.0" - - "-" "-" 2 "-" "-" 0ms

```

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 2:37pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/8 "2021-09-10T14:37:10Z")

</div>

dashboard needs to be suffixed with `/`

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 2:43pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/9 "2021-09-10T14:43:07Z")

</div>

still same 404

```auto
| 172.18.0.1 - - [10/Sep/2021:14:41:29 +0000] "GET /dashboard/ HTTP/2.0" - - "-" "-" 4 "-" "-" 0ms
| 172.18.0.1 - - [10/Sep/2021:14:41:34 +0000] "GET /dashboard/ HTTP/1.1" - - "-" "-" 5 "-" "-" 0ms

```

also redirect from `http` to `https` is not working as can be seen above `"GET /dashboard/ HTTP/1.1"` is http and `"GET /dashboard/ HTTP/2.0"` is https

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 2:50pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/10 "2021-09-10T14:50:33Z")

</div>

Sorry missed the most common one for swarm mode: Your labels are not nested under `deploy:`

Also consider changing the acceslog format to json. There is more rich infocation there.(CLF can be customised but json is easier to parse)

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 2:56pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/11 "2021-09-10T14:56:00Z")

</div>

Where is docs for swarm mode to next labels under deploy? There seems to be limited doc on swarm mode

How do i use JSON for access logs? Mind pointing me to the lines to change and from what to what? Will really appreciate it...thanks in advance

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 3:02pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/12 "2021-09-10T15:02:08Z")

</div>

The labels are in the site you linked earlier too.

> ```yaml
> deploy:
> placement:
> constraints:
> # Make the traefik service run only on the node with this label
> # as the node with it has the volume for the certificates
> - node.labels.traefik-public.traefik-public-certificates == true
> labels:
> # Enable Traefik for this service, to make it available in the public network
> - traefik.enable=true
> # Use the traefik-public netwo
> 
> ```

Swarm labels:

> **[Traefik Docker Documentation - Traefik](https://doc.traefik.io/traefik/providers/docker/#routing-configuration-with-labels_1)**
>
> Learn how to achieve configuration discovery in Traefik through Docker. Read the technical documentation.

Access Log Format:

> **[Traefik Access Logs Documentation - Traefik](https://doc.traefik.io/traefik/observability/access-logs/#format)**
>
> Access logs are a key part of observability in Traefik Proxy. Read the technical documentation to learn their configurations, rotations, and time zones.

The option is missing in the doc though. Look in the static reference section.

> `--accesslog.format` :  
> Access log format: json | common (Default: `common` )

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 3:16pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/13 "2021-09-10T15:16:58Z")

</div>

works now!!!  
didn't realize the labels had to be nested under the deploy..thanks a lot for pointing that out..dashboard works now

thanks a lot...again

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 4:02pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/14 "2021-09-10T16:02:35Z")

</div>

@cakiwi

one last issue

i am only seeing this with the `docker swarm` setup

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/1/129261c4b86b43fa9861b8f1929d5a45bb0df94e.png)

not seeing the 8080 traefik port

like the one here used for `docker`

 ![image](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/6/681e476083811c247a1c1a43d61df37d0b6d7c46.png)

not sure what else i missed

here is latest yaml

```auto
version: '3.9'

services:
  traefik:
    image: traefik:v2.4
    ports:
      - target: 80
        published: 80
        mode: host
      - target: 443
        published: 443
        mode: host
      - target: 8080
        published: 8080
        mode: host
    deploy:
      placement:
        constraints:
          - node.labels.traefik.traefik-certificates == true
      labels:
        - "traefik.enable=true"
        - "traefik.docker.network=traefik_network"
        - "traefik.constraint-label=traefik"
        - "traefik.http.routers.traefik-http.rule=Host(`proxy.example.com`)"
        - "traefik.http.routers.traefik-http.entrypoints=http"
        - "traefik.http.routers.traefik-http.middlewares=https-redirect"
        - "traefik.http.routers.traefik-https.middlewares=admin-auth"
        - "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
        - "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
        - "traefik.http.middlewares.admin-auth.basicauth.users=test1:$$apr1$$rd0qto3i$$mWrcrfrRfrEkgPVZ3w1,test2:$$apr1$$1smybfkx$$qsrcrfTyejEn12LKmbNMC."
        - "traefik.http.routers.traefik-https.rule=Host(`proxy.example.com`)"
        - "traefik.http.routers.traefik-https.entrypoints=https"
        - "traefik.http.routers.traefik-https.tls=true"
        - "traefik.http.routers.traefik-https.service=api@internal"
        - "traefik.http.routers.traefik-https.tls.certresolver=le"
        - "traefik.http.services.traefik.loadbalancer.server.port=8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - traefik-certificates:/certificates
    env_file:
      - ./.env.traefik
    command:
      - "--providers.docker.constraints=Label(`traefik.constraint-label`, `traefik`)"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--providers.docker.swarmMode=true"
      - "--entrypoints.http.address=:80"
      - "--entrypoints.https.address=:443"
      - "--certificatesresolvers.le.acme.dnschallenge=true"
      - "--certificatesresolvers.le.acme.dnschallenge.provider=cloudflare"
      - "--certificatesresolvers.le.acme.email=first.last@email.com"
      - "--certificatesresolvers.le.acme.storage=/certificates/acme.json"
      - "--log.level=DEBUG"
      - "--accesslog=true"
      - "--accesslog.format=json"
      - "--api=true"
      - "--api.dashboard=true"
    networks:
      - traefik_network

volumes:
  traefik-certificates:

networks:
  traefik_network:
    external: 
      name: traefik_network

```

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 4:08pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/15 "2021-09-10T16:08:15Z")

</div>

> [@decypher\_the\_world](#):
>
> ```auto
> - "--entrypoints.http.address=:80"
> - "--entrypoints.https.address=:443"
> 
> ```

You'd need to add it alongside these ones, if you used --api.insecure that automatically creates the entrypoint.

---

<div class="post-metadata">

**Author:** ![decypher\_the\_world](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@decypher\_the\_world](https://community.traefik.io/u/decypher_the_world)\
**Post date:** [September 10, 2021, 4:18pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/16 "2021-09-10T16:18:41Z")

</div>

perfect `- "--api.insecure=true"` did the trick

thanks

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [September 10, 2021, 5:48pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/17 "2021-09-10T17:48:23Z")

</div>

Of course it also makes it.... insecure 🦹 😃

---

<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:** [September 13, 2021, 5:49pm UTC](https://community.traefik.io/t/can-not-access-dashboard-with-traefik-in-docker-swarm/11722/18 "2021-09-13T17:49:21Z")

</div>

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