A serverless web app built with Docker
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
entrypoint
record-vote-task
result
vote
.gitignore
LICENSE
Makefile
README.md
docker-compose.build.yml
docker-compose.yml

README.md

Serverless Docker Example Voting App

This is a serverless app built with Docker. Read more in the Serverless Docker repository.

Architecture

It consists of a simple entrypoint server that listens for HTTP requests. All of the other functionality of the app is run on-demand as Docker containers for each HTTP request:

  • vote: The voting web app, as a CGI container that serves a single HTTP request.
  • record-vote-task: A container which processes a vote in the background, run by the vote app.
  • result: The result web app, as a CGI container.

Running

Run in this directory:

$ make

The app will be running at http://localhost/vote/ and http://localhost/result/