Skip to content

This is a Django production ready Docker container for Prowl with a directory structure in place. Written by Montana Mendy

License

Notifications You must be signed in to change notification settings

GitProwl/docker-django-prowl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Prowl

This is simple Django production ready Docker container for Prowl. It contains nginx+gunicorn serving static content and running a WSGI server for the Django project in question, managed by supervisord.

By default this machine will create a container listening on all interfaces on port 8001. The container will be called 'django_app'.

Usage example

mkdir django-prod
cd django-prod
git init
git remote add upstream https://github.com/Montana/docker-django-prowl
git pull upstream master
make create

Using it with MySQL

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': os.environ.get('MYSQL_ENV_MYSQL_DATABASE'),
        'USER': os.environ.get('MYSQL_ENV_MYSQL_USER'),
        'PASSWORD': os.environ.get('MYSQL_ENV_MYSQL_PASSWORD'),
        'HOST': os.environ.get('MYSQL_PORT_3306_TCP_ADDR'),
        'PORT': os.environ.get('MYSQL_PORT_3306_TCP_PORT'),
    }
}

To export needed env variables, you need to define the env file. For development simply add needed env variables in your env file in root. This is all you need to do.

Actually there are MySQL/PostgreSQL settings that comment out in that file already, just make them work for your machine.

Written by Montana Mendy.

About

This is a Django production ready Docker container for Prowl with a directory structure in place. Written by Montana Mendy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published