From 64278e71636de0724c877e25693ab43b91c4b0ec Mon Sep 17 00:00:00 2001 From: Leif Neland Date: Tue, 2 Jun 2020 00:46:32 +0200 Subject: [PATCH] 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 +```