Sign inSign up

namexiaoluo/django

By namexiaoluo

•Updated about 6 years ago

python3.6+django+uwsgi

Image
0

163

namexiaoluo/django repository overview

⁠django + uwsgi + python

Just mapping your project to /home. Your project should have uwsgi.ini and requirements.txt.

 uwsgi.ini

[uwsgi]
# use socket
#socket=0.0.0.0:8080
# use http
http=0.0.0.0:8080

chdir=/home
# you just need replace this
wsgi-file=your Project/wsgi.py

processes=4

threads=2

master=True

pidfile=uwsgi.pid

vacuum = true

Default expose port 8080, you can change it in uwsgi.ini.

requirements.txt is the wheels your project need.

Use pip freeze > requirements.txt to create it.

Run docker run -p 8085:8080 -d -v /home/yourProject/:/home/ --name="yourName" namexiaoluo/django

Tag summary

Content type

Image

Digest

Size

586 MB

Last updated

about 6 years ago

docker pull namexiaoluo/django