compose-spec / compose-spec

The Compose specification

Home Page:https://compose-spec.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggest adding the description of expose of compose

wushu037 opened this issue · comments

commented

File: 05-services.md

The description in the documentation is:
"expose defines the ports that Compose implementations MUST expose from container. These ports MUST be accessible to linked services and SHOULD NOT be published to the host machine. Only the internal container ports can be specified."

However, by default, containers in the same bridged network will expose all ports to each other, even if expose is not configured.
So what is the real meaning of expose?

Thanks for contributing @wushu037. Closing this issue as it has now been resolved!