I have enabled the docker swarm for local testing. Now, whenever trying to deploy using docker-compose up command. It is showing me the below warning.
WARNING: The Docker Engine you're using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use docker stack deploy.