# Api@internal not reachable

**URL:** <https://community.traefik.io/t/api-internal-not-reachable/2409>\
**Category:** Traefik v2\
**Tags:** dashboard-api\
**Created:** [October 16, 2019, 4:23pm UTC](https://community.traefik.io/t/api-internal-not-reachable/2409 "2019-10-16T16:23:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phill93](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/phill93/32/930_2.png) [@Phill93](https://community.traefik.io/u/Phill93)\
**Post date:** [October 16, 2019, 4:23pm UTC](https://community.traefik.io/t/api-internal-not-reachable/2409/1 "2019-10-16T16:23:58Z")

</div>

Hi,

i am trying to expose the traefik dashboard to "traefik.localhost" but all I a 404 error.

Can someone help please?

docker-compose:

```auto
version: '3'
services:
  treafik:
    image: traefik:2.0
    container_name: traefik
    hostname: traefik
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ${PWD}/traefik.yml:/etc/traefik/traefik.yml
    ports:
      - 80:80
      - 443:443
      - 8080:8080

```

traefik.yaml

```auto
## traefik.yml

# Docker configuration backend
providers:
  docker:
    exposedByDefault: false

# API and dashboard configuration
api:
  dashboard: true

http:
  routers:
    dashboard:
      rule: "Host(`traefik.localhost`)"
      service: "api@internal"

accessLog: {}

```

---

<div class="post-metadata">

**Author:** ![daniel.tomcej](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/daniel.tomcej/32/262_2.png) [@daniel.tomcej](https://community.traefik.io/u/daniel.tomcej)\
**Post date:** [October 16, 2019, 11:59pm UTC](https://community.traefik.io/t/api-internal-not-reachable/2409/2 "2019-10-16T23:59:45Z")

</div>

Hello @Phill93,

The Traefik dashboard runs in secure mode by default:

[https://docs.traefik.io/v2.0/operations/dashboard/#secure-mode](https://docs.traefik.io/v2.0/operations/dashboard/#secure-mode)

You can see it working in _insecure mode_ in this example: [https://docs.traefik.io/v2.0/user-guides/docker-compose/basic-example/](https://docs.traefik.io/v2.0/user-guides/docker-compose/basic-example/)

But be aware that it should be run in secure mode if you intend to use it in an internet-facing environment.
