The sample can be deployed with either docker-compose (v1.20+ required) or docker swarm. The deployment uses the same configuration script.
This is as simple as
make start_docker_compose
make stop_docker_compose
Initialize docker swarm if you have not:
sudo docker swarm init
Then start/stop services as follows:
make start_docker_swarm
make stop_docker_swarm
Follow the instructions to create a swarm. Then setup each swarm node as follows:
- All swarm nodes must have the same user (uid) and group (gid).
- Setup NFS to share the volume directory.
- Each swarm node must mount the volume directory at the same absolute path.
Finally, start/stop services as follows:
make start_docker_swarm
make stop_docker_swarm