# Swarm mode giving 404

**URL:** <https://community.traefik.io/t/swarm-mode-giving-404/2746>\
**Category:** Traefik v2\
**Tags:** docker-swarm, docker\
**Created:** [November 3, 2019, 2:05am UTC](https://community.traefik.io/t/swarm-mode-giving-404/2746 "2019-11-03T02:05:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![zespri](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/zespri/32/310_2.png) [@zespri](https://community.traefik.io/u/zespri)\
**Post date:** [November 3, 2019, 2:37am UTC](https://community.traefik.io/t/swarm-mode-giving-404/2746/2 "2019-11-03T02:37:08Z")

</div>

Two things are missing here:

- Swarm mode not enabled [https://docs.traefik.io/v2.0/providers/docker/#swarmmode](https://docs.traefik.io/v2.0/providers/docker/#swarmmode)
- Service port not specified (it's mandatory for swarm) [https://docs.traefik.io/v2.0/routing/providers/docker/#services](https://docs.traefik.io/v2.0/routing/providers/docker/#services)

Regarding point two, for the dashboard/api you need to create a dummy service and put some port on it. An example is [here](https://community.containo.us/t/dashboard-gives-me-an-error-bad-gateway/1883/2)

---

_[View the full topic](https://community.traefik.io/t/swarm-mode-giving-404/2746)._
