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.
Dieser Commit ist enthalten in:
Leif Neland 2020-06-02 00:46:32 +02:00 committet von GitHub
Ursprung 85c3f6ffe3
Commit 64278e7163
Es konnte kein GPG-SchlĂĽssel zu dieser Signatur gefunden werden
GPG-SchlĂĽssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -187,7 +187,7 @@ services:
labels: labels:
- traefik.enable=true - traefik.enable=true
# Creates a router called "moo" for the container, and sets up a rule to link the container to certain rule, # 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}`) - traefik.http.routers.moo.rule=Host(`${MAILCOW_HOSTNAME}`)
# Enables tls over the router we created before. # Enables tls over the router we created before.
- traefik.http.routers.moo.tls=true - traefik.http.routers.moo.tls=true
@ -199,6 +199,8 @@ services:
# Specifies which entrypoint (external port) should traefik listen to, for this container. # Specifies which entrypoint (external port) should traefik listen to, for this container.
# websecure being port 443, check the traefik.toml file liked above. # websecure being port 443, check the traefik.toml file liked above.
- traefik.http.routers.moo.entrypoints=secure - traefik.http.routers.moo.entrypoints=secure
# Make sure traefik uses the web network, not the mailcowdockerized_mailcow-network
- traefik.docker.network=web
certdumper: certdumper:
image: humenius/traefik-certs-dumper image: humenius/traefik-certs-dumper