/django-docker-compose-postgres-boilerplate

A simple boilerplate with django/docker-compose/postgres. Allows versatile development via agile deployment structure built on docker compose and make file.

Primary LanguagePython

Django Boilerplate with Docker Compose, Makefile, and PostgreSQL

This is a basic template for Django projects configured to use Docker Compose, Makefile, and PostgreSQL.

Requirements

How to Use

  1. Clone the repository:

    git clone https://github.com/artem-sokolov-git/django-docker-compose-postgres-boilerplate.git
    cd django-docker-compose-postgres-boilerplate
    
  2. Install all required packages in Requirements section.

Implemented Commands

  • make app - up application and database/infrastructure
  • make app-logs - follow the logs in app container
  • make app-down - down application and all infrastructure
  • make storages - up only storages. you should run your application locally for debugging/developing purposes
  • make storages-logs - foolow the logs in storages containers
  • make storages-down - down all infrastructure

Most Used Django Specific Commands

  • make migrations - make migrations to models
  • make migrate - apply all made migrations
  • make collectstatic - collect static
  • make superuser - create admin user