# Does this docker-compose allow access to the traefik dashboard? If so, on which url?

**URL:** <https://community.traefik.io/t/does-this-docker-compose-allow-access-to-the-traefik-dashboard-if-so-on-which-url/18272>\
**Category:** Traefik v2\
**Tags:** dashboard-api, letsencrypt-acme, docker\
**Created:** [April 15, 2023, 8:55pm UTC](https://community.traefik.io/t/does-this-docker-compose-allow-access-to-the-traefik-dashboard-if-so-on-which-url/18272 "2023-04-15T20:55:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jquiros2](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jquiros2/32/6986_2.png) [@jquiros2](https://community.traefik.io/u/jquiros2)\
**Post date:** [April 15, 2023, 8:55pm UTC](https://community.traefik.io/t/does-this-docker-compose-allow-access-to-the-traefik-dashboard-if-so-on-which-url/18272/1 "2023-04-15T20:55:24Z")

</div>

Hi! Does this docker-compose allow access to the traefik dashboard? If so, on which url? Or do I need to explicitly enable the traefik dashboard, and if so, what is the recommended way?

* * *

```auto
version: "3.3"

services:
  traefik:
    container_name: traefik
    image: "traefik:latest"
    command:
      - --entrypoints.web.address=:80
      - --entrypoints.websecure.address=:443
      - --providers.docker
      - --log.level=ERROR
      - --certificatesresolvers.leresolver.acme.httpchallenge=true
      - --certificatesresolvers.leresolver.acme.email=your-email #Set your email address here, is for the generation of SSL certificates with Let's Encrypt. 
      - --certificatesresolvers.leresolver.acme.storage=./acme.json
      - --certificatesresolvers.leresolver.acme.httpchallenge.entrypoint=web
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "./acme.json:/acme.json"
    labels:
      - "traefik.http.routers.http-catchall.rule=hostregexp(`{host:.+}`)"
      - "traefik.http.routers.http-catchall.entrypoints=web"
      - "traefik.http.routers.http-catchall.middlewares=redirect-to-https"
      - "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"

  portainer:
    image: portainer/portainer-ce:latest
    command: -H unix:///var/run/docker.sock
    restart: always
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - portainer_data:/data
    labels:
      # Frontend
      - "traefik.enable=true"
      - "traefik.http.routers.frontend.rule=Host(`portainer.yourdomain.com`)"
      - "traefik.http.routers.frontend.entrypoints=websecure"
      - "traefik.http.services.frontend.loadbalancer.server.port=9000"
      - "traefik.http.routers.frontend.service=frontend"
      - "traefik.http.routers.frontend.tls.certresolver=leresolver"

      # Edge
      - "traefik.http.routers.edge.rule=Host(`edge.yourdomain.com`)"
      - "traefik.http.routers.edge.entrypoints=websecure"
      - "traefik.http.services.edge.loadbalancer.server.port=8000"
      - "traefik.http.routers.edge.service=edge"
      - "traefik.http.routers.edge.tls.certresolver=leresolver"

volumes:
  portainer_data:

```

* * *

(this is from [Deploying Portainer behind Traefik Proxy - Portainer Documentation](https://docs.portainer.io/advanced/reverse-proxy/traefik))

---

<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:** [April 15, 2023, 10:04pm UTC](https://community.traefik.io/t/does-this-docker-compose-allow-access-to-the-traefik-dashboard-if-so-on-which-url/18272/2 "2023-04-15T22:04:56Z")

</div>

Please format your code with 3 backticks or use `</>` button when code is selected.

[Simple Traefik example](https://github.com/bluepuma77/traefik-best-practice/tree/main/docker-traefik-dashboard-letsencrypt) with dashboard.

---

<div class="post-metadata">

**Author:** ![jquiros2](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/jquiros2/32/6986_2.png) [@jquiros2](https://community.traefik.io/u/jquiros2)\
**Post date:** [April 16, 2023, 6:46pm UTC](https://community.traefik.io/t/does-this-docker-compose-allow-access-to-the-traefik-dashboard-if-so-on-which-url/18272/3 "2023-04-16T18:46:42Z")

</div>

In case someone else looks for this.

This is the way:

> **[Traefik Dashboard Documentation - Traefik](https://doc.traefik.io/traefik/operations/dashboard/)**
>
> The dashboard shows you the current active routes handled by Traefik Proxy in one central place. Read the technical documentation to learn its operations.
