# Discourse behind Traefik 🐁

**URL:** <https://meta.discourse.org/t/discourse-behind-traefik/84874>\
**Category:** Self-hosting\
**Created:** [April 9, 2018, 11:33am UTC](https://meta.discourse.org/t/discourse-behind-traefik/84874 "2018-04-09T11:33:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Cerix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cerix/32/94018_2.png) [@Cerix](https://meta.discourse.org/u/Cerix)\
**Post date:** [April 10, 2018, 2:01pm UTC](https://meta.discourse.org/t/discourse-behind-traefik/84874/4 "2018-04-10T14:01:33Z")

</div>

OK problem solved!

edit you app.yml add traefik labels like this:

```
expose:
     - "80"
     - "443"

labels:
      - traefik.backend="app"
      - traefik.frontend.rule=Host:meta.mydomain.org
      - traefik.docker.network=web
      - traefik.port=80

```

after run:  
`$ ./launcher rebuil app`

connect the container to your network:

`$ docker network connect web app`

Enjoy Discourse!

---

_[View the full topic](https://meta.discourse.org/t/discourse-behind-traefik/84874)._
