UWSGI container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
dpedu 7dc9f576e4 FIx UID 5 years ago
Dockerfile Initial commit 5 years ago
README.md update readme 5 years ago
default Initial commit 5 years ago
init-virtualenv FIx UID 5 years ago
nginx.conf Initial commit 5 years ago
pythonapp.conf Initial commit 5 years ago
pythonapp.ini FIx UID 5 years ago
start Initial commit 5 years ago
supervisor.conf Initial commit 5 years ago

README.md

Docker Pythonapp

For running uWSGI python3 apps.

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 a wsgi callable.
  • 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

TODO

  • Figure out a way to run apps in “test” mode (I.E. CherryPy / Flask builtin server w/ debug mode)
  • Easier way to change uwsgi ini file. (Maybe, override defaults if appdir/uwsgi.ini is present?)
  • Multiple apps in a single container?