Skip to content

ashleywxwx/docker-swarm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build docker images:

docker-compose build

Run docker image:

docker-compose up

Build a docker swarm:

docker-compose build

docker swarm init

docker network create -d overlay mynet

docker service create --replicas 3 --name adjective --publish 8010:8010/tcp --network mynet recursivechaos/adjective

docker service create --replicas 3 --name noun --publish 8020:8020/tcp --network mynet recursivechaos/noun

docker service create --replicas 1 --name gateway --publish 8000:8000/tcp --network mynet recursivechaos/gateway

curl localhost:8000\adjectives\random

About

Demo project for Docker Swarm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published