emukans / docker-django

Docker compose boilerplate for Django 2 application

Repository from Github https://github.comemukans/docker-djangoRepository from Github https://github.comemukans/docker-django

Django 2 docker-compose boilerplate

The goal of this repository is to simplify the project creation process and make a common boilerplate for all new projects using Django.

Getting started

Please follow the instructions to set up the Django project.

Prerequisites

  • Docker version 18 or higher
  • Docker compose 1.20 or higher

Installing

  1. Create a .env file from the .env.example file. And adapt it according to your Django project needs.

    cp .env.example .env
  2. Start docker-compose by running docker-compose up -d

  3. (Optional) Dump static files.

    docker-compose exec app python manage.py collectstatic --no-input
  4. Visit http://localhost:8080/

Authors

  • Eduards Mukans - Initial work - emukans

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Docker compose boilerplate for Django 2 application

License:MIT License


Languages

Language:Python 94.5%Language:Dockerfile 5.5%