|
il y a 7 ans | |
---|---|---|
.github | il y a 8 ans | |
result | il y a 7 ans | |
vote | il y a 9 ans | |
worker | il y a 7 ans | |
.gitignore | il y a 9 ans | |
LICENSE | il y a 9 ans | |
MAINTAINERS | il y a 8 ans | |
README.md | il y a 8 ans | |
architecture.png | il y a 9 ans | |
docker-compose-javaworker.yml | il y a 8 ans | |
docker-compose-simple.yml | il y a 8 ans | |
docker-compose.yml | il y a 8 ans | |
docker-stack.yml | il y a 8 ans | |
dockercloud.yml | il y a 9 ans |
Download Docker. If you are on Mac or Windows, Docker Compose will be automatically installed. On Linux, make sure you have the latest version of Compose.
Run in this directory:
docker-compose up
The app will be running at http://localhost:5000, and the results will be at http://localhost:5001.
Alternately, if you want to run it on a Docker Swarm, first make sure you have a swarm. If you don't, run:
docker swarm init
Once you have your swarm, in this directory run:
docker stack deploy --compose-file docker-stack.yml vote
The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.