Sample project for testing Docker Compose and Docker Swarm capabilities
Run
docker-compose up -d
to build and run containers.
To stop and remove containers
docker-compose down -v
Once built with Compose, enter Swarm mode if not enabled
docker swarm init
then
docker stack deploy -c docker-compose.yml wp
To remove deployed services
docker stack rm wp
To exit Swarm mode
docker swarm leave --force