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:
Ursprung
85c3f6ffe3
Commit
64278e7163
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
|
@ -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
|
||||||
|
@ -245,4 +247,4 @@ postfix_c=$(docker ps -qaf name=postfix-mailcow)
|
||||||
dovecot_c=$(docker ps -qaf name=dovecot-mailcow)
|
dovecot_c=$(docker ps -qaf name=dovecot-mailcow)
|
||||||
nginx_c=$(docker ps -qaf name=nginx-mailcow)
|
nginx_c=$(docker ps -qaf name=nginx-mailcow)
|
||||||
docker restart ${postfix_c} ${dovecot_c} ${nginx_c}
|
docker restart ${postfix_c} ${dovecot_c} ${nginx_c}
|
||||||
```
|
```
|
||||||
|
|
Laden …
In neuem Issue referenzieren