We have two clean nodes in our swarm. We need to go back a little bit and prepare our hosts for our service. More specifically, we need to create our image again.
Because we have our Dockerfile, this is an easy task. Just run:
docker build -t imagini:0.0.5 .
Do this on both hosts:
Finally, we'll have our image available on both nodes. Our database container also needs an image, but since that's an official, published image, we don't need to build it, as Docker will download it when it needs it.
We can now use the Docker stack tool to deploy our instances. It uses our previous Docker Compose configuration to know how to deploy ...