I would like to have NPM and mailcow running in docker on my VPS.
On a previous server I managed to install mailcow with no issues, followed the guide and had it running (mailcow was the only container).
Now I need to have NPM and Mailcow running together on one server.
I have checked the mailcow forum and reddit for some solutions.
I’m currently getting these errors:
2024/10/24 13:37:43 [error] 20#20: *23 connect() failed (111: Connection refused) while connecting to upstream, client: 54.247.57.72, server: mail.mydomain.tld, request: “GET / HTTP/1.1”, upstream: “fastcgi://[fd4d:6169:6c63:6f77::a]:9002”, host: "mail.mydomain.tld
I have changed the mailcow.config to point http and https to port 8080 and 8433:
HTTP_PORT=8080
HTTP_BIND=[serverip]
HTTPS_PORT=8443
HTTPS_BIND=[serverip]
I have used the server IP instead of 127.0.0.1.
NPM has its own default network, separate from the network of mailcow.
NPM has a host config for https://[serverIP]:8443
Would be appreciated if anybody has an idea on this.