Docker gunicorn server generic image source. This is based on ubuntu:14.04 image.
You can pull a ready to use image from Docker
index running:
$ docker pull devoto13/gunicorn
Or build this repository:
$ git clone https://github.com/devoto13/docker-gunicorn.git
$ cd docker-gunicorn/
$ docker build -t devoto13/gunicorn .
Change devoto13/gunicorn to your Docker index username.
This image uses volumes and environment variables to control the gunicorn server configuration.
Volumes:
/root/app/logs: Logs from the container using it.You pass with -v docker option. Don't forget to use absolute path here.
Environment variables (defaults are the same as Gunicorn defaults if opposite is not stated explicitly):
APP_WSGI - REQUIRED. WSGI application to run.APP_NAME - REQUIRED. Corresponds proc_name.APP_WORKERS - Corresponds workers.BIND - Corresponds bind (default: 0.0.0.0:80).WORKER_CLASS - Corresponds worker_class.WORKER_CONNECTIONS - Corresponds worker_connections.BACKLOG - Corresponds backlog.MAX_REQUESTS - Corresponds max_requests.TIMEOUT - Corresponds timeout.GRACEFUL_TIMEOUT - Corresponds graceful_timeout.KEEPALIVE - Corresponds keepalive.You pass with -e docker option.
Image intended to be used as base image for another Dockerfile. Take a look at the example/ directory.
No tags have been pushed to this repository yet.