No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
dashboard
responder_app
services/postgres
.gitignore
Pipfile
Pipfile.lock
README.md
docker-compose.yml
test_nb.ipynb
write_db.ipynb

README.md

Docker Compose Demo

Docker Compose allows users to orchestrate multiple Docker containers that can talk to one another.

This repository contains a docker-compose.yml file starting the following containers:

  • db - a PostgreSQL database housing a toy dataset
  • api - a mock prediction API (built as a responder app). In a real world setting this API could, for instance, run an input data point through a previously trained machine learning model and return a prediction.
  • dash - a simple Dash dashboard that reads data from db and runs them trough the prediction api.
  • jnb- a Jupyter lab environment to run Jupyter notebooks being able to read/write data from db, run data through the api and so on.

Usage

To run Docker Compose:

docker-compose up --build

The Jupyter lab server is available at: http://127.0.0.1:10000/lab

The dashboard is then available at: http://127.0.0.1:8050/

Shutdown and remove containers:

docker-compose down

TODO?

  • fancier dashboard?
  • how do volumes relate to containers? what about persistance?
  • add more container components?
  • show how to use a simple, pretrained tf model from tf hub in API?