runofthemillgeek / flask-docker-compose-template

A sample project to develop Flask apps with Docker Compose and auto-reload using nodemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flask + Docker Compose for Development

Requirements

  • Docker Desktop

Instructions

./scripts/dev.sh

This will build the image from Dockerfile.dev and start the server watching .py/.json files using nodemon.

Ctrl + C will quit the server and stop the container.

If you need to force rebuild the image, in case you modified Dockerfile.dev, run:

./scripts/devbuild.sh

pip install

Ensure dev environment is up by running ./scripts/dev.sh and then run the following:

./scripts/pip-install requests

This will run using docker-compose exec so it'll also update the local requirements.txt and restart nodemon.

About

A sample project to develop Flask apps with Docker Compose and auto-reload using nodemon


Languages

Language:Python 61.6%Language:Shell 38.4%