Hacker News new | ask | show | jobs
by NerdyBird 2112 days ago
This is false. Not listing the host port will make docker choose a random one. It however is still opened up in the firewall by default.

Source: https://docs.docker.com/compose/compose-file/#ports

2 comments

That’s what he said