fdiblen / django-nginx-docker

Django Nginx example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-nginx-docker

Simple example to show how to serve Django application with Nginx.

Building

docker build -t django-nginx .

Running

docker run -ti --rm \
  --name django \
  -p 8000:8000 \
  -v $(pwd)/docs:/docs \
  django-nginx:latest

Visit http://0.0.0.0:8000/

About

Django Nginx example

License:Apache License 2.0


Languages

Language:Dockerfile 53.3%Language:Shell 46.7%