ChristianLempa / videos

This is my video documentation. Here you'll find code-snippets, technical documentation, templates, command reference, and whatever is needed for all my YouTube Videos.
MIT License
879 stars 322 forks source link

Invalid port #33

Closed Nick390 closed 1 year ago

Nick390 commented 1 year ago

If you have this problem

services.nginx-mailcow.ports is invalid: Invalid port ":443:443", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]

Here how you can fix it:

  1. In /opt/mailcow-dockerized you will find .env file.
  2. Run nano .env.
  3. Search for:
    
    HTTP_PORT=80
    HTTP_BIND=

HTTPS_PORT=443 HTTPS_BIND=

Change it to:

HTTP_PORT=80 HTTP_BIND=0.0.0.0

HTTPS_PORT=443 HTTPS_BIND=0.0.0.0


4. CTRL + O then CTRL + X.
5. Now Run `docker-compose up -d`.

[Credited to eddytnk](https://community.mailcow.email/d/1781-error-with-docker-composeyml-file/5)