ddev / ddev-contrib

MOSTLY OBSOLETE, replaced by DDEV Add-ons. Was older contrib space for DDEV services, tools, snippets, and approaches.
Apache License 2.0
162 stars 160 forks source link

Updated Ports - Changed from ports to expose (docker-compose.chrome.yaml) #244

Closed XjSv closed 6 months ago

XjSv commented 6 months ago

Changed 'ports' to 'expose'. Ports exposed to the other services but not to the host machine.

That approach usually isn’t sustainable because two projects might want to use the same port, so we expose the additional port to the Docker network and then use ddev-router to bind it to the host. This works only for services with an HTTP API, but results in having both HTTP and HTTPS ports (9998 and 9999).

https://ddev.readthedocs.io/en/latest/users/extend/custom-compose-files/#docker-composeyaml-examples