How can I make connection between two services in docker swam?

How could I make connection between 2 services: MySQL & OCS in docker swarm the 2 services are in the same overlay network.

  • Deploy a docker container to production
  • Getting Unsupported protocol scheme error with docker in pycharm
  • Dart project with Dokku. Fails push to master
  • Couldn't resolve host within docker container and java process
  • Docker swarm load balancing - How to give common name to the service?
  • How to configure autoscaling on docker swarm?
  • Is it acceptable to create tests relying on docker for a node.js module?
  • How are docker layer directories named?
  • Cannot connect to Neo4j from RStudio Server in docker on Centos 7
  • How do we set docker containers to restart on reboot and on-failure?
  • How can I solve “crontab: your UID isn't in the passwd file. bailing out.”?
  • Node Prerender Working on First Page Load - 500 Error on Subsequent Loads
  • One Solution collect form web for “How can I make connection between two services in docker swam?”

    Just reference the other service by it’s service name with DNS. It should resolve.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.