Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

After reboot server with docker

docker-compose up -d
mattermostdocker_db_1 is up-to-date
mattermostdocker_app_1 is up-to-date
Starting mattermostdocker_web_1

ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint mattermostdocker_web_1 (d2ef5adf780b6e793d703045698075e294688a63d949427462b4db4d36dca4cd): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

docker-compose stop
docker-compose up -d
Starting mattermostdocker_app_1
Starting mattermostdocker_web_1
Starting mattermostdocker_db_1

ERROR: for web Cannot start service web: driver failed programming external connectivity on endpoint mattermostdocker_web_1 (28156ac10038d34e6c935d5dec9aaf2693b55bf4a3af63cd7e575e32d0f7caeb): Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use
ERROR: Encountered errors while bringing up the project.

sudo netstat -nlp | grep 443
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 745/nginx: master p
tcp6 0 0 :::443 :::* LISTEN 745/nginx: master p

@pichouk Is this something you’ve encountered before?

Nop. It seems related with letsencrypt process. Maybe when i installed certbot? @pichouk @amy.blais

It seems you already have an Nginx process that run on your server. Do you have any other webserver on the server ?

Thanks @pichouk. I fixed it. It was a web server on the host. It happend when i installed a cerbot support for ngnix.