Comment on Docker security
melmi@lemmy.blahaj.zone 5 days ago
If there’s a port you want accessible from the host/other containers but not beyond the host, consider using the expose directive instead of ports. As an added bonus, you don’t need to come up with arbitrary ports to assign on the host for every container with a port 443.