Skip to content

docker + python 3.6.5 + django 2.2 + nginx + gunicorn + postgres

License

Notifications You must be signed in to change notification settings

XiangHuang1992/django-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-on-Docker

docker + django + nginx + postgres + gunicorn demo

Development setup

git clone git@github.com:XiangHuang1992/django-on-docker.git # 下载到本地

# dev
docker-compose up -d --build 


# prod(添加了nginx和gunicorn)
docker-compose -f docker-compose.prod.yml  up -d --build # 生产环境,添加了nginx和gunicorn

docker-compose -f docker-compose.prod.yml exec web python manage.py migrate --noinput # django migrate

docker-compose -f docker-compose.prod.yml exec web python manage.py collectstatic --no-input --clear # staticfile and mediafiles collect

About

docker + python 3.6.5 + django 2.2 + nginx + gunicorn + postgres

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published