To run this you need a redis and both swarmdemo and redis need to run in one overlay network
docker network create --driver=overlay swarmdemonet
docker service create --network swarmdemonet --name redis redis
docker service create -p 5500:5000 --network swarmdemonet --name swarmdemo --limit-cpu=1 --replicas=5 anilskp/swarmdemo:latest
Go to your browser and try the url
http://:5500
Code for the demoapp is available in my Github rep https://github.com/anilskp/swarmdemo.git
Content type
Image
Digest
Size
31 MB
Last updated
about 9 years ago
docker pull anilskp/swarmdemo