how to deploy the application on docker swarm compose file code example Example: docker swarm deploy docker stack deploy -c "path to compose" stackname