In docker compose file i was able to declare a domain & IP like below -
extra_hosts:
- "mshost:10.4.12.31"
- "mongodb DEV-MONGODB:10.250.12.35"
I want to know the alternative to this while using command in docker engine swarm mode .
"docker service create ...."