3 ms·
Did you try this? networks: - host https://docs.docker.com/network/host/ https://docs.docker.com/network/host/
by lub 6y ago
Did you try this?
networks:
- host
https://docs.docker.com/network/host/ https://docs.docker.com/network/host/
- fy20 6y agoMaybe it has changed since I built it, but I wasn't able to get this working with Swarm services. I had to convert them to docker-compose to make it work. The docs suggest it should work with Swarm mode though, so maybe I need to try again. Ideally I'd like to give each service its own IP on the network, which was possible with how I had k8s setup.