docker host下使用docker compose部署時如何配置監聽端口? #982
Answered
by
WaterLemons2k
Nebulosa-Cat
asked this question in
Q&A
-
目前配置 ddns-go:
image: jeessy/ddns-go:latest
network_mode: host
restart: always
volumes:
- ./opt/ddns-go:/root 不確定怎樣把-l :xxxx 寫在配置檔案內 |
Beta Was this translation helpful? Give feedback.
Answered by
WaterLemons2k
Jan 14, 2024
Replies: 1 comment
-
command: -l :xxxx 参考:https://docs.docker.com/compose/compose-file/compose-file-v3/#command |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nebulosa-Cat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
参考:https://docs.docker.com/compose/compose-file/compose-file-v3/#command