|
%!s(int64=7) %!d(string=hai) anos | |
---|---|---|
.github | %!s(int64=8) %!d(string=hai) anos | |
result | %!s(int64=8) %!d(string=hai) anos | |
vote | %!s(int64=9) %!d(string=hai) anos | |
worker | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=9) %!d(string=hai) anos | |
LICENSE | %!s(int64=9) %!d(string=hai) anos | |
MAINTAINERS | %!s(int64=8) %!d(string=hai) anos | |
README.md | %!s(int64=8) %!d(string=hai) anos | |
architecture.png | %!s(int64=9) %!d(string=hai) anos | |
docker-compose-javaworker.yml | %!s(int64=8) %!d(string=hai) anos | |
docker-compose-simple.yml | %!s(int64=8) %!d(string=hai) anos | |
docker-compose.yml | %!s(int64=8) %!d(string=hai) anos | |
docker-stack.yml | %!s(int64=8) %!d(string=hai) anos | |
dockercloud.yml | %!s(int64=9) %!d(string=hai) anos |
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.