2015-11-15 20:59:29 +01:00
Example Voting App
==================
2016-01-25 19:20:23 +01:00
This is an example Docker app with multiple services. It is run with Docker Compose and uses Docker Networking to connect containers together. You will need Docker Compose 1.6 or later.
2015-11-15 20:59:29 +01:00
2015-11-17 05:14:53 +01:00
More info at https://blog.docker.com/2015/11/docker-toolbox-compose/
2015-11-17 05:18:35 +01:00
Architecture
-----
* A Python webapp which lets you vote between two options
* A Redis queue which collects new votes
* A Java worker which consumes votes and stores them in…
* A Postgres database backed by a Docker volume
* A Node.js webapp which shows the results of the voting in real time
2015-11-15 20:59:29 +01:00
Running
-------
2016-01-25 19:23:19 +01:00
Run in this directory:
2015-11-15 20:59:29 +01:00
2016-02-04 21:26:23 +01:00
$ docker-compose up
2015-11-15 20:59:29 +01:00
The app will be running on port 5000 on your Docker host, and the results will be on port 5001.
2015-12-09 17:57:06 +01:00
Docker Hub images
-----------------
Docker Hub images for services in this app are built automatically from master:
- [docker/example-voting-app-voting-app ](https://hub.docker.com/r/docker/example-voting-app-voting-app/ )
2016-02-04 21:26:42 +01:00
- [docker/example-voting-app-result-app ](https://hub.docker.com/r/docker/example-voting-app-result-app/ )
2015-12-09 17:57:06 +01:00
- [docker/example-voting-app-worker ](https://hub.docker.com/r/docker/example-voting-app-worker/ )