After updating mailcow-dockerized using the update.sh command, jlesage/nginx-proxy-manager (also dockerized) can no longer connect, throwing a “502 Bad Gateway”-error. Until the update everything worked fine and I have changed nothing else.
In both mailcow-docker and nginx-proxy-manager I have
networks:
nginx-proxy:
external: true
name: nginx-proxy-network
In the nginx-proxy-manager interface I configure the forward hostname:ip as http://mailcowdockerized-nginx-mailcow-1 :8080
In mailcow-dockerized docker-compose.yml I add, for the nginx-mailcow: container
networks:
mailcow-network:
aliases:
- nginx
nginx-proxy:
In .env / mailcow.conf I have
HTTP_PORT=8080
HTTP_BIND=127.0.0.1
HTTPS_PORT=8443
HTTPS_BIND=127.0.0.1
I think this HTTP_BIND is the problem. Netstat shows that docker-proxy is binding this IP/port combination, but nginx-proxy-manager expect it to be bound on the shared nginx-proxy network, not on 127.0.0.1.
On the other hand, it worked perfectly before the update, and I didn’t change this, so I don’t know why it no longer works.
Help.