Sign inSign up

madron/django-example

By madron

•Updated over 10 years ago

Django deploy with uwsgi and nginx

Image
0

375

madron/django-example repository overview

⁠How to use this image

⁠Start uwsgi backend

$ docker run -d --name backend -v /media -e DEBUG=True madron/django-example

⁠Connect nginx to uwsgi backend through http protocol

$ docker run -d --name frontend-http -p 8000:80 --link backend:uwsgi --volumes-from backend madron/django-example nginx

⁠Connect nginx to uwsgi backend through uwsgi protocol over tcp

$ docker run -d --name frontend-uwsgi-tcp -p 8001:81 --link backend:uwsgi --volumes-from backend madron/django-example nginx

⁠Connect nginx to uwsgi backend through uwsgi protocol over unix socket

$ docker run -d --name frontend-uwsgi-socket -p 8002:82  --link backend:uwsgi --volumes-from backend madron/django-example nginx

Tag summary

Content type

Image

Digest

sha256:462a02e2c…

Size

163.7 MB

Last updated

over 10 years ago

docker pull madron/django-example