Django Docker Template

screenshot of Django Docker Template

A Django project template for a RESTful Application using Docker

Overview:

This Django project template is designed for building and operating a RESTful application using Docker. It includes opinionated ideas to make development and deployment easier. The application itself is a simple Django project that uses Django REST framework and stores tweets. The template utilizes Docker containers for different tasks related to development and production. It requires Python 3, Django 1.11, and Docker 17.

Features:

  • Docker-based project template for a RESTful application
  • Includes support for creating and retrieving tweets
  • Uses Django REST framework for building the API
  • Provides separate Docker containers for development and production
  • Includes health checks for the application and the database
  • Allows configuration through environment variables
  • Supports running tests using pytest and pytest-django
  • Includes a development server that restarts when code changes
  • Uses a precompiled dependencies folder to save time when rebuilding containers

Summary:

This Django project template provides a Docker-based setup for building and operating a RESTful application. It includes features such as support for creating and retrieving tweets, health checks, configuration through environment variables, and the ability to run tests using pytest. The template aims to make development and deployment easier with its Docker container setup. Users can install the template by cloning the repository, setting up the environment variables, and starting the development services with Docker Compose. Overall, this template offers a convenient and efficient way to develop and deploy a Django RESTful application using Docker.