IBRAHIMDANS / voting-app

Inspire dockersamples example-voting-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Voting App

Voting app

Scripts

Launch Docker

docker compose up

App running at http://localhost:5000, and the results will be at http://localhost:5001.

docker swarm init

Deploy

docker stack deploy --compose-file docker-stack.yml vote

Run the app in Kubernetes

kubectl create -f k8s-specifications/

Remove :

kubectl delete -f k8s-specifications/

Architecture diagram

  • A front-end web app in Python which lets you vote between two options
  • A Redis which collects new votes
  • A .NET worker which consumes votes and stores them in…
  • A Postgres database backed by a Docker volume
  • A Node.js web app which shows the results of the voting in real time

About

Inspire dockersamples example-voting-app


Languages

Language:C# 25.4%Language:CSS 16.8%Language:JavaScript 14.9%Language:HTML 14.8%Language:Dockerfile 14.1%Language:Python 7.7%Language:Shell 6.2%