django-docker-compose-postgres-boilerplate
django-docker-compose-postgres-boilerplate copied to clipboard
A simple boilerplate with django/docker-compose/postgres. Allows versatile development via agile deployment structure built on docker compose and make file.
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
-
Clone the repository:
git clone https://github.com/your_username/your_repository.git cd your_repository -
Install all required packages in
Requirementssection.
Implemented Commands
make app- up application and database/infrastructuremake app-logs- follow the logs in app containermake app-down- down application and all infrastructuremake storages- up only storages. you should run your application locally for debugging/developing purposesmake storages-logs- foolow the logs in storages containersmake storages-down- down all infrastructure
Most Used Django Specific Commands
make migrations- make migrations to modelsmake migrate- apply all made migrationsmake collectstatic- collect staticmake superuser- create admin user