The following are a few assumptions for the Docker environment:
- We are taking two machines, which could be VM's or instances from the cloud platform, for the demo purpose named master and node1. Also, we have installed Docker on both the machines by following the procedure described in the Docker installation section.
- Port 2377 must be opened for communication between the master and node1.
- Make sure the required port for application access should be opened; we will need port 80 for nginx, just like in our example.
- The master Docker machine could be based on any kind of OS, such as Ubuntu, Windows, and so on.
Now, let's begin with our Docker Swarm setup.