Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 581 Bytes

File metadata and controls

16 lines (12 loc) · 581 Bytes

This is a working example of a multi-container flask application with Postgres as the database fronted by the nginx reverse proxy. See my blog post for a detailed explanation.

Usage

  1. Bootstrap the DB
$ docker-compose up -d db
$ docker-compose run --rm flaskapp /bin/bash -c "cd /opt/services/flaskapp/src && python -c  'import database; database.init_db()'"
  1. Bring up the cluster
$ docker-compose up -d
  1. Browse to localhost:8080 to see the app in action.