Go to file
2016-06-17 20:52:38 -07:00
result-app adding CI test for Docker Cloud 2016-06-17 20:52:33 -07:00
voting-app Run flask server multithreaded 2016-06-17 15:24:14 -07:00
worker Recreate worker as a .NET Core app 2016-06-11 14:26:04 -07:00
.gitignore Recreate worker as a .NET Core app 2016-06-11 14:26:04 -07:00
docker-compose.yml Moving result app to be based on node:5.11.0-slim, adding back links in docker-compose.yml, and removing explicit container names 2016-05-03 19:35:26 -07:00
dockercloud.yml adding dockercloud.yml 2016-06-17 20:52:38 -07:00
LICENSE Add LICENSE and MAINTAINERS 2016-03-31 11:49:23 -07:00
MAINTAINERS Add LICENSE and MAINTAINERS 2016-03-31 11:49:23 -07:00
README.md Fix typo in image name 2016-02-04 12:26:42 -08:00

Example Voting App

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.

More info at https://blog.docker.com/2015/11/docker-toolbox-compose/

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

Running

Run in this directory:

$ docker-compose up

The app will be running on port 5000 on your Docker host, and the results will be on port 5001.

Docker Hub images

Docker Hub images for services in this app are built automatically from master: