|
|
hace 8 años | |
|---|---|---|
| .github | hace 8 años | |
| result | hace 8 años | |
| vote | hace 9 años | |
| worker | hace 8 años | |
| .gitignore | hace 9 años | |
| LICENSE | hace 9 años | |
| MAINTAINERS | hace 9 años | |
| README.md | hace 8 años | |
| architecture.png | hace 9 años | |
| docker-compose-javaworker.yml | hace 8 años | |
| docker-compose-simple.yml | hace 8 años | |
| docker-compose.yml | hace 8 años | |
| docker-stack.yml | hace 8 años | |
| dockercloud.yml | hace 9 años |
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.