Store some stack definitions to deploy in your swarm.
docker swarm init --advertise-addr eth0
docker swarm join ....
docker swarm join ....
....
or
Use: docker swarm join-token worker
to get the command to add worker nodes to your swarm.
git clone https://github.com/juanjmerono/stacks.git
docker stack deploy -c visualizer-compose.xml visualizer
or
./run_stack.sh start visualizer
./update_token.sh manager-host old-api-token new-api-token
docker stack deploy -c testingdesa-compose.xml testingdesa
or
./run_stack.sh start testingdesa
./download_images.sh -s <gitlab-token>
docker-compose -f socat-compose.yml up -d
Go to the manager and add the worker
./add_worker.sh <manager-host> <worker-ip> <auth-token> <gitlab-token>