ERROR: for nginx Cannot start service nginx: driver failed programming external connectivity on endpoint central_nginx_1

I just managed to figure out the issue by restarting the docker service. After running docker-compose stop, systemctl restart docker and docker-compose up -d it finally worked.