Public Repository

Last pushed: 2 years ago
Short Description
The Django backend container
Full Description

Usage

The image is prepared to be used in Django app development, it is suggested to use a fig.yml to link this container with other web and db/cache/message-queue containers and mount the source code for your Django project.

See a prepared basic setup using Fig. You can also find the Dockerfile of this container there.

1-2 Step

  1. Upon running the container, mount your src directory using -v, --volume option into $PROJECT_DIR. (use volumes: ... in a fig.yml)

  2. [optional] If you are starting a new project, after mounting the src volume, issue the following cmd to this container to populate the empty src folder:
    django-admin.py startproject <project name> .

Always use this container for django-admin.py and python manage.py commands. Commit your source code from the mounted src volume together with the fig.yml orchestration script.

Requirements.txt

  • Django
  • Unipath
  • djangorestframework
  • markdown
  • django-filter
  • django-rest-swagger
  • mongoengine
  • psycopg2
  • django-redis
  • Celery
  • django-celery
  • uwsgi

Working Directory

$PROJECT_DIR = /code

GUI

For front-end development, use the bluekvirus/webstarter container which has its own nginx plus the gulp front-end build tool installed. (babel is also installed if you want to code in ECMAScript 6 instead of 5)

Docker Pull Command
Owner
bluekvirus