Skip to content

pahaz/docker-compose-django-postgresql-redis-example

master
Switch branches/tags
Code
This branch is 42 commits ahead, 16 commits behind gogobook:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Django Development With Docker Compose

Include:

  • Python + Node.js
  • Django
  • WebSocket server
  • Celery worker + Celery beat
  • PostgreSQL
  • Redis

Requirements:

  • Docker >= v1.10.3
  • Docker Compose >= v1.7.1
  • Python >= 3.5

OS X Docker Native Instruction

  1. Start Docker Native
  2. Build images - docker-compose build
  3. Create the database migrations - docker-compose run web python manage.py migrate
  4. Start services - docker-compose up
  5. View in browser http://127.0.0.1:8000/

OS X Docker Machine Instruction

  1. Start new machine - docker-machine create -d virtualbox dev;
  2. Build images - docker-compose build
  3. Create the database migrations - docker-compose run web python manage.py migrate
  4. Start services - docker-compose up -d
  5. Grab IP - docker-machine ip dev - and view in your browser

About

Django + Postgres + Redis + Celery + Celery Beat + WebSocket server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.7%
  • HTML 7.0%
  • JavaScript 3.2%
  • Shell 1.9%
  • CSS 0.2%