Posted on

Python3/Django2 Docker Boilerplate For Django Development

I recently inheritted a very large project that happened to be written in Django. We set out to have a development environment up for the main site in a week or two.

My first step was to build something in Django. I used this opportunity to create a public boilerplate for django apps in docker. It’s a python django example app (a basic todo), complete with a Dockerfile and docker-compose.yml that builds it. You can read more by visiting the code available in my gitlab here:

UPDATE: If you’re going to run django in docker, you’re probably going to want to limit its CPU access with cpulimit and nice/renice.
See this article for details