'Run ddev containers on port 80, solve port conflict

Instead of using ddev share, I want to run ddev applications on a virtual server (Hetzner, Ubuntu installed, pre-installed docker ce).

As docker already reserved port 80: Is there a way to forward a specific ddev port to the same port listening to docker?

tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1650/docker-proxy

My ddev test application is configured to port 8080 and is accessible.

The ddev configuration:

router_http_port: "80"
router_https_port: "443"
host_webserver_port: "8080"

If I change to

router_http_port: "80"
router_https_port: "443"
host_webserver_port: "80"

I'm (of course) running into

Failed to start test: Unable to listen on required ports, port 80 is already in use

Can this conflict be solved by forwarding a port (ddev router) or do I need to change the docker port?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source