docs
docs copied to clipboard
Compose: Add guidance for using host network in Swarm mode and Docker Stack
Description
This PR adds a new how-to section explaining how to use the host network when deploying services in Swarm mode via docker stack deploy.
Key additions:
- YAML example showing how to reference the built-in
hostnetwork as an external network. - A note outlining key limitations when using host networking with Swarm, such as:
- Only supported in global service mode
- No support for Swarm ingress networking or service discovery
- Port-binding limitations
This is meant to clarify a niche but important case for users deploying Compose files to Swarm clusters that need access to the host's network. Let me know if there are other cross-references I should do in other parts of the docs.
Related issues or tickets
Reviews
- [ ] Technical review
- [ ] Editorial review
- [ ] Product review
Deploy Preview for docsdocker ready!
| Name | Link |
|---|---|
| Latest commit | 0d85e2abd40c220eadb83dbce025ec29dc0363b4 |
| Latest deploy log | https://app.netlify.com/projects/docsdocker/deploys/68392c034f64eb0008846aab |
| Deploy Preview | https://deploy-preview-22724--docsdocker.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify project configuration.
Thanks for the PR @deahtstroke. Will take a look shortly
Hi, any update on the review of this PR?