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.
Failed to load latest commit information.

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


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.


Use this image with Kubernetes. On this image, nginx is configured to talk to uWSGI over a 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:


Copyright 2016 LSST/AURA, MIT Licensed.