From 64278e71636de0724c877e25693ab43b91c4b0ec Mon Sep 17 00:00:00 2001 From: Leif Neland Date: Tue, 2 Jun 2020 00:46:32 +0200 Subject: [PATCH 1/2] Make traefik use right net address of nginx Unless specified, traefik might try use the ip of nginx on the mailcowdockerized_mailcow-network, which is not reachable. --- docs/firststeps-rp.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/firststeps-rp.md b/docs/firststeps-rp.md index 2392edd31..f54dff0ad 100644 --- a/docs/firststeps-rp.md +++ b/docs/firststeps-rp.md @@ -187,7 +187,7 @@ services: labels: - traefik.enable=true # Creates a router called "moo" for the container, and sets up a rule to link the container to certain rule, - # in this case, a Host rule with our MAILCOW_HOSTNAME var. + # in this case, a Host rule with our MAILCOW_HOStraefik.docker.network=proxyTNAME var. - traefik.http.routers.moo.rule=Host(`${MAILCOW_HOSTNAME}`) # Enables tls over the router we created before. - traefik.http.routers.moo.tls=true @@ -199,6 +199,8 @@ services: # 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 + # Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network + - traefik.docker.network=web certdumper: image: humenius/traefik-certs-dumper @@ -245,4 +247,4 @@ postfix_c=$(docker ps -qaf name=postfix-mailcow) dovecot_c=$(docker ps -qaf name=dovecot-mailcow) nginx_c=$(docker ps -qaf name=nginx-mailcow) docker restart ${postfix_c} ${dovecot_c} ${nginx_c} -``` \ No newline at end of file +``` From 5bf5140d188dacc253d448a1d9558440d0ba7883 Mon Sep 17 00:00:00 2001 From: Leif Neland Date: Tue, 2 Jun 2020 00:55:33 +0200 Subject: [PATCH 2/2] Update firststeps-rp.md --- docs/firststeps-rp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/firststeps-rp.md b/docs/firststeps-rp.md index f54dff0ad..11b266167 100644 --- a/docs/firststeps-rp.md +++ b/docs/firststeps-rp.md @@ -187,7 +187,7 @@ services: labels: - traefik.enable=true # Creates a router called "moo" for the container, and sets up a rule to link the container to certain rule, - # in this case, a Host rule with our MAILCOW_HOStraefik.docker.network=proxyTNAME var. + # in this case, a Host rule with our MAILCOW_HOSTNAME var. - traefik.http.routers.moo.rule=Host(`${MAILCOW_HOSTNAME}`) # Enables tls over the router we created before. - traefik.http.routers.moo.tls=true