services-ports

The ports is used to define the port mappings between the host machine and the containers. This is crucial for allowing external access to services running inside containers. It can be defined using short syntax for simple port mapping or long syntax, which includes additional options like protocol type and network mode.


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:51:05 UTC
由 壳壳虫 更新于 2026-10-31 18:51:06 UTC