Skip to content
This repository was archived by the owner on Oct 7, 2019. It is now read-only.

Nginx docker container built on the standard Python 3.x container for deployment with uWSGI Python apps

License

Notifications You must be signed in to change notification settings

lsst-sqre/nginx-python-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Nginx docker container built on the standard Python 3.x container for deployment with uWSGI Python apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages