Nginx docker container built on the standard Python 3.x container for deployment with uWSGI Python apps
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
compose
k8s
LICENSE
README.md

README.md

sqrelsst/nginx-python Docker images

This is an nginx Docker image built upon the python:3.5.1 official Python image. Building nginx upon Python helps save space when deploying nginx with a uWSGI-based Python application that uses the same base image.

This image configures nginx to work with a uWSGI server on an HTTP socket over 3031 port. By using the HTTP socket it's easy for an nginx container to talk to another uWSGI+app container.

Image tags

sqrelsst/nginx-python:compose

Use this image with Docker Compose. This image configures nginx to work with a uWSGI server over the uwsgi:3031 HTTP socket. The uwsgi hostname should be set on the uWSGI+App container via Docker Compose.

sqrelsst/nginx-python:k8s

Use this image with Kubernetes. On this image, nginx is configured to talk to uWSGI over a 127.0.0.1:3031 HTTP socket since containers in Kubernetes pods all share host network. The nginx container listens on 8080 because we assume that another service will terminate SSL.

Prior art

The practices employed in this Docker container are built upon the following repositories and documentation:

License

Copyright 2016 LSST/AURA, MIT Licensed.