My template for Django API projects using Django Rest Framework
and Postgres all running under Docker.
mkdir app
docker-compose build web
docker-compose run --rm web sh -c "/py/bin/django-admin startproject app ."
docker-compose run --rm web sh -c "flake8"; docker-compose down
docker-compose run --rm web sh -c "python manage.py test"; docker-compose down