Nessuna descrizione

Ben Firshman e7b46707bd Merge pull request #15 from bfirsh/add-gitignore-remove-pyc 9 anni fa
result-app 3978756bb2 Moving result app to be based on node:5.11.0-slim, adding back links in docker-compose.yml, and removing explicit container names 9 anni fa
voting-app 702958b0d8 Remove .pyc file 9 anni fa
worker 261eb03102 adding in improvements from when we ran the birthday party app. Mostly fixed the Dockerfiles so they use Alpine for the base images. That required re-working the Java worker Docker file. Removed links from compose file. cleaned up a few things like a tab instead of a space in app.py 9 anni fa
.gitignore 4cce340ca6 Add .gitignore to ignore future *.pyc 9 anni fa
LICENSE e41af6b81c Add LICENSE and MAINTAINERS 9 anni fa
MAINTAINERS e41af6b81c Add LICENSE and MAINTAINERS 9 anni fa
README.md 0d19451246 Fix typo in image name 9 anni fa
docker-compose.yml 3978756bb2 Moving result app to be based on node:5.11.0-slim, adding back links in docker-compose.yml, and removing explicit container names 9 anni fa

README.md

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: