Discourse behind Traefik
If you want use Traefik as reverse proxy to rute traffic to your Discourse container just edit your container/app.yml
Expose the container port without binding them with the host and add labels for Traefik routing.
expose: - "80" - "443" labels: - traefik.backend="app" - traefik.frontend.rule=Host:meta.mydomain.org - traefik.docker.network=proxy <== this is your traefik specified network - traefik.port=80
$ ./launcher rebuil app
This command will rebuild the container with new settings but is still connected to the default network If Traefik run on a different network you simply need to connect Discourse container in your specified network.
$ docker connect proxy app
when i have time i'll write a full tutorial.