Simple container for running gunicorn.
The default configuration assumes you have a WSGI application available inside
/app that is executed with
server:app. You are expected to mount a data
volume to that directory.
docker run --publish-all -v /path/to/wsgi-app:/app tswicegood/gunicorn
Note, this exposes port 8000.
Configuration is loaded via gunicorn's
--config parameter and is located in
/etc/gunicorn/config.py. You can override settings by mounting a data volume
/etc/gunicorn with a custom
The default configuration looks like this:
bind = "0.0.0.0:8000" chdir = "/app" loglevel = "INFO" workers = "4" worker_class = "gevent" reload = True errorlog = "-" accesslog = "-"