From 2c91c41695bfa469c925262bf6a194165dcda53c Mon Sep 17 00:00:00 2001 From: Jan Kiesewetter <3628035+t3easy@users.noreply.github.com> Date: Tue, 25 May 2021 08:50:46 +0200 Subject: [PATCH] Update Traefik example - Define code block as Yaml - Use env HTTP_PORT to get the port Trafik should use - Use the default example `websecure` entrypoint like in Traefik examples --- docs/firststeps-rp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/firststeps-rp.md b/docs/firststeps-rp.md index d33d03a0b..4b4b0a06d 100644 --- a/docs/firststeps-rp.md +++ b/docs/firststeps-rp.md @@ -185,7 +185,7 @@ For this we'll have to set `SKIP_LETS_ENCRYPT=y` on our `mailcow.conf`, and run Then we'll create a `docker-compose.override.yml` file in order to override the main `docker-compose.yml` found in your mailcow root folder. -``` +```yaml version: '2.1' services: @@ -204,10 +204,10 @@ services: - traefik.http.routers.moo.tls.certresolver=le # Creates a service called "moo" for the container, and specifies which internal port of the container # should traefik route the incoming data to. - - traefik.http.services.moo.loadbalancer.server.port=80 + - traefik.http.services.moo.loadbalancer.server.port=${HTTP_PORT} # Specifies which entrypoint (external port) should traefik listen to, for this container. # websecure being port 443, check the traefik.toml file liked above. - - traefik.http.routers.moo.entrypoints=secure + - traefik.http.routers.moo.entrypoints=websecure # Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network - traefik.docker.network=web