All Projects → lukin0110 → docker-django-boilerplate

lukin0110 / docker-django-boilerplate

Licence: Apache-2.0 license
Minimal boilerplate setup for a Django project with Docker.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to docker-django-boilerplate

sparky
A Bootstrap 3 and 4 Sass Starter Project
Stars: ✭ 21 (-48.78%)
Mutual labels:  boilerplate-template, project-template
ExpressSimpleBoilerPlate
Kerangka project Express JS dengan tambahan ES2015, ESLint, Webpack, Babel, beberapa middleware pengaman, Worker Threads, mock data generator, dan masih banyak lagi.
Stars: ✭ 22 (-46.34%)
Mutual labels:  boilerplate-template
gulp-sass-bootstrap-boilerplate
⏰📌 Boilerplate with gulp.js, Sass, Babel, and Browsersync.
Stars: ✭ 24 (-41.46%)
Mutual labels:  boilerplate-template
tweego-setup
A blank Tweego project with all the trimmings. Uses node and gulp.
Stars: ✭ 40 (-2.44%)
Mutual labels:  project-template
ts-node-starter
GitHub template to get started with Node.js & TypeScript. ⚡
Stars: ✭ 28 (-31.71%)
Mutual labels:  boilerplate-template
awesome-vue-boilerplate
😍 Awesome Vue Boilerplate 🥳 Vue 🥰 Vuex, vuex-pathify 🤗 element-ui 🤲 tailwindcss
Stars: ✭ 60 (+46.34%)
Mutual labels:  boilerplate-template
flutter-ui-boilerplate
Flutter ui boilerplate is easiest way to create new flutter project with clean code and well organized file folder.
Stars: ✭ 114 (+178.05%)
Mutual labels:  boilerplate-template
alexa-skill-boilerplate
An easy to use Amazon Alexa Skill Boilerplate for fast skill creation
Stars: ✭ 54 (+31.71%)
Mutual labels:  boilerplate-template
sparrowx
Minimal, SEO-friendly, Jekyll + Netlify CMS Boilerplate.
Stars: ✭ 15 (-63.41%)
Mutual labels:  boilerplate-template
flask-project-template
DO NOT FORK, CLICK "Use this template" - A github template to start a Flask Project - this uses github actions to generate your project based on the template.
Stars: ✭ 74 (+80.49%)
Mutual labels:  project-template
MonolithicArchitecture
This repository presents an approach on how to build an application using Monolithic architecture, ASP.NET Core, EntityFrameworkCore, Identity Server, CQRS, DDD
Stars: ✭ 18 (-56.1%)
Mutual labels:  project-template
create-material-ui-app
create-react-app + storybook + storybook-addon-material-ui
Stars: ✭ 55 (+34.15%)
Mutual labels:  boilerplate-template
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (-24.39%)
Mutual labels:  boilerplate-template
ionic-vue-mobile-template-01
Hybrid app template built with vue, ionic and capacitor.
Stars: ✭ 47 (+14.63%)
Mutual labels:  boilerplate-template
react-initial-bootstrap
an "almost complete" template for your new projects
Stars: ✭ 24 (-41.46%)
Mutual labels:  boilerplate-template
opencart-project-template
OpenCart Project Template
Stars: ✭ 16 (-60.98%)
Mutual labels:  project-template
project-template
Yii2 Project Template
Stars: ✭ 53 (+29.27%)
Mutual labels:  project-template
factorio-example-mod
Lightweight modular example mod with various features and compatibilities
Stars: ✭ 15 (-63.41%)
Mutual labels:  boilerplate-template
bashew
bash script micro-framework - from small stand-alone script to complex projects with CI/CD and testing
Stars: ✭ 139 (+239.02%)
Mutual labels:  boilerplate-template
DiscordBot-Template
A boilerplate / template for discord.js bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
Stars: ✭ 129 (+214.63%)
Mutual labels:  boilerplate-template

Docker Django Boilerplate

Minimal setup for a Django project with Docker, following the 12factor app principles. This repo contains skeleton code to get up and running with Docker & Django quickly. The image uses uWSGI to host the Django project. It's up to you to put Nginx or Apache in front in production.

This image is not intended as being a base image for a Django project. It's a boilerplate, you can copy/paste this and use it as a base to start a project. The image contains the hello Django project. Replace the word hello with the name of your project.

Usage

Download the repository:

$ git clone https://github.com/lukin0110/docker-django-boilerplate.git

Init project:

$ cd docker-django-boilerplate
$ docker-compose build

Setup database:

$ docker-compose up -d postgres
$ docker-compose run app setup_db

Launch:

$ docker-compose up app

Launch Nginx (optional):

$ docker-compose up web

Now your django app is available on http://localhost, but it's optional for development

Container commands

The image has

Run a command:

$ docker-compose run app <command>

Available commands:

Command Description
dev Start a normal Django development server
bash Start a bash shell
manage Start manage.py
setup_db Setup the initial database. Configure $POSTGRES_DB_NAME in docker-compose.yml
lint Run pylint
python Run a python command
shell Start a Django Python shell
uwsgi Run uwsgi server
help Show this message

Create a Django app

$ docker-compose run app manage startapp myapp

Create a super user

$ docker-compose run app manage createsuperuser

Awesome resources

Useful awesome list to learn more about all the different components used in this repository.

Useful links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].