This repo is used as a demo for this blog.
start the app in the background
docker compose up -d
check the logs (use -f
to follow)
docker compose logs
remove the app
docker compose down
rebuild images (after making changes)
docker compose build
update web service (eg. with new image)
docker compose up web -d --no-deps
- the
master
branch contains the code for flask dev server (flask run
). - the
prod
branch contains the code forgunicorn
.
This demo was adapted from docker compose getting started guide.