Skip to content

zerossB/django-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Development Container

Image made to be able to create and run Django projects in a simple and 100% modifiable way.

Simple Tags

How to use?

Simply build the image using docker build -t docker-django.

and run it with all needed parameter:

docker run --rm \
    -v ./:/code \
    -e ZONEINFO=America/Sao_Paulo \
    -e DJANGO_VERSION=2.2.7\
    -e PROJECT_NAME=myproject
     django-docker

With Docker-Compose

version: "3"
services:
  db:
    image: postgres
    ports:
      - "5432:5432"
  web:
    image: zerossb/django-docker:2-alpine
    restart: always
    environment:
      ZONEINFO: "America/Sao_Paulo"
      DJANGO_VERSION: 2.2.8
      PROJECT_NAME: myapp
    ports:
      - 8000:8000
    volumes:
      - .:/code

That's it.

Environment variables

This image uses environment variables for configuration.

Available variables Default value Description
ZONEINFO America/Sao_Paulo Django Time Zone
DJANGO_VERSION 2.2.8 Django Version
PROJECT_NAME myapp Project Name

Functionalities

  • Creates the project automatically.
  • Install all requirements.txt dependencies
  • 100% customizable

License

This git repo is under the GNU V3 license. Find it here.

About

Image made to be able to create and run Django projects in a simple and 100% modifiable way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published