Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

mbwatson/django-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Docker

Description

This defines and runs a multi-container Dockerized Django application that uses PostgreSQL and is served by Nginx.

How to Use

TBA

Initial Configuration

outline of config steps: more details to come

  • change allowed_hosts in webapp/settings.py
  • docker-compose exec app python manage.py migrate
  • docker-compose exec app python manage.py collectstatic
  • docker-compose exec app python manage.py createsuperuser
  • change database name, user, password
  • set DJANGO_SECRET_KEY environment variable in docker/django/Dockerfile
ENV DJANGO_SECRET_KEY 1234567890!@#$%^&*()MY!SUPER!SECET!KEY)(*&^%$#@!)
  • ...
  • ...
  • ...
  • change DEBUG to False

About

dockerized nginx serving django with postgres

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors