Go to file
Ben Firshman 6aa86f6a12 Merge pull request #3 from bfirsh/compose-file-2
Convert app to use Compose file 2
2016-02-04 19:57:27 +00:00
result-app Move everything into the root directory 2016-02-04 10:53:27 -08:00
voting-app Move everything into the root directory 2016-02-04 10:53:27 -08:00
worker Move everything into the root directory 2016-02-04 10:53:27 -08:00
docker-compose.yml Add Networks! 2016-02-04 11:29:17 -08:00
README.md Move everything into the root directory 2016-02-04 10:53:27 -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 -d

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: