Closed yogeshkathayat closed 4 years ago
Please use this format for your ports and see if it solves your problem:
ports:
- target: 3000
published: 3000
protocol: tcp
mode: host
Did you tried to use tasks.
This issue is for https://github.com/docker/swarmkit not the old standalone Swarm.
Environment:-
My compose file:-
Issue:- I am not able to ping another host in the same local network from inside of the container, if I remove
ports
section from my Compose file then it is working perfectly. but I want to expose the port to the outside world.Steps:-