UWSGI container
Go to file
dpedu d740a015bd Initial commit 2015-06-13 23:56:17 -07:00
Dockerfile Initial commit 2015-06-13 23:56:17 -07:00
README.md Initial commit 2015-06-13 23:56:17 -07:00
default Initial commit 2015-06-13 23:56:17 -07:00
init-virtualenv Initial commit 2015-06-13 23:56:17 -07:00
nginx.conf Initial commit 2015-06-13 23:56:17 -07:00
pythonapp.conf Initial commit 2015-06-13 23:56:17 -07:00
pythonapp.ini Initial commit 2015-06-13 23:56:17 -07:00
start Initial commit 2015-06-13 23:56:17 -07:00
supervisor.conf Initial commit 2015-06-13 23:56:17 -07:00

README.md

Docker Pythonapp

For running uWSGI python3 app

Usage:

  • build image: docker build -t pyapp .
  • build a python3 app. for example, in a folder called testapp
  • testapp/app.py is the main wsgi file. var application must be the wsgi app instance.
  • testapp/requirements.txt is used by pip to install required modules
  • app/static will be mapped to http://server.address/static/
  • run container: docker run -p 80:80 -v /localpath/to/appdir/:/home/python/app/ pythonapp

Example app:

http://gitlab.xmopx.net/dave/example-uwsgi-app/tree/master