docker swarm alternatives code example
Example 1: docker swarm deploy
docker stack deploy -c "path to compose" stackname
Example 2: create docker swarm
docker swarm init
docker stack deploy -c "path to compose" stackname
docker swarm init