Docker swarm is an orchestration tool, similar to Kubernetes, but simpler to set up and manage. It doesn’t come with a shared storage solution out of the box, so that is something you need to take care for yourself.
Check out Docker HEALTHCHECK feature with a small configurable Go web app with example
docker nginx configuration template example with env vars
I remember the day I started using Docker. The simplicity was overwhelming. I went over the official docs which are very good, and looked up some 101 tutorials to get started. I had successfully made my first image. Now that I have one, I want to deploy it over my servers. The first option was DockerHub , but a free account obligates you to share the images. If you need to keep them private, this service costs money.