You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 17, 2023. It is now read-only.
**the `latest` tag is not assigned - explicitly use one of the tags above.**
10
+
**You must explicitly use one of the tags above.** The `latest` tag is not assigned since each tag represents a different variant, not an incremental version.
11
11
12
-
>This is to prevent pulling an unexpected image, as the tags represent completely different image variants not incremental versions.
13
-
14
-
# NGINX-UWSGI
12
+
## NGINX-UWSGI
15
13
16
14
**Docker** image with **Nginx**, **uWSGI** and **Python** running in a single container to enable running Python Web Apps on NGINX.
17
15
18
-
> NOTE: This project is a derivative of the project at [tiangolo/UWSGI-NGINX-DOCKER](https://github.com/tiangolo/uwsgi-nginx-docker). It was created out of necessity to address urgent fixes and enhancements. This ultimately required creating derivatives of both the [base images](https://github.com/robertpeteuil/docker-nginx-uwsgi) and the [flask images](https://github.com/robertpeteuil/docker-nginx-uwsgi-flask).
This Docker image allow the creation/migration of Python Web Apps to run on Nginx and uWSGI in a single container. It's designed for use as base image for:
23
+
27
24
- Other images - such as a pre-built image for running Flask Apps [nginx-uwsgi-flask](https://github.com/robertpeteuil/docker-nginx-uwsgi-flask) .
28
25
- A development image that can be customized with your unique web-framework, Python libraries and code.
29
26
30
27
This repo auto-generates images to [Docker-Hub](https://hub.docker.com/r/robpco/nginx-uwsgi/). It includes standard and alpine-based variants for each supported Python version (2.7, 3.5, 3.6).
31
28
32
-
# Enhancements
33
-
34
-
The image used in this repo includes the following enhancements (over previous repos):
35
-
- Adds image variants built on alpine-linux
36
-
- Updated built-in Nginx to 1.13.7 on non-alpine variants
37
-
- Reduces CRIT errors from `supervisord`
38
-
-`supervisord.conf` is explicitly referenced via the Dockerfile CMD statement
39
-
-`supervisord.conf` includes an explicitly set user-name
40
-
- Manually Building the image is protected against failures from key-server outages
41
-
42
-
# Information
29
+
## Usage
43
30
44
31
The Docker-Hub [repository](https://hub.docker.com/r/robpco/nginx-uwsgi/) contains auto-generated images from this repo. They can be referenced (or pulled) by using the image name `robpco/nginx-uwsgi`, plus a tag for the python version desired (ex: `:python3.6`), and optionally appending `-alpine` to the tag (for alpine variants).
45
32
46
-
**Detailed usage documentation and examples can be found on the repo [tiangolo/UWSGI-NGINX-DOCKER](https://github.com/tiangolo/uwsgi-nginx-docker).**
47
-
48
-
# Custom Environment Variables
33
+
## Custom Environment Variables
49
34
50
35
This image supports the following custom environment variables:
51
36
@@ -57,27 +42,25 @@ This image supports the following custom environment variables:
57
42
-**LISTEN_PORT** - custom port that Nginx should listen on
58
43
- 80 = Nginx default
59
44
60
-
# Setting Environment Variables
45
+
##Setting Environment Variables
61
46
62
47
Environment variables can be set in multiple ways. The following examples, demonstrate setting the `LISTEN_PORT` environment variable via three different methods. These methods apply to the other Environment Variables as well.
63
48
64
-
**Setting in a `Dockerfile`**
49
+
### Setting in a `Dockerfile`
65
50
66
51
```dockerfile
67
52
# ... (snip) ...
68
53
ENV LISTEN_PORT 8080
69
54
# ... (snip) ...
70
55
```
71
56
72
-
73
-
**Setting during [`docker run`](https://docs.docker.com/engine/reference/commandline/run/#options) with the `-e` option**
57
+
### Setting during [`docker run`](https://docs.docker.com/engine/reference/commandline/run/#options) with the `-e` option
74
58
75
59
```shell
76
60
docker run -e LISTEN_PORT=8080 -p 8080:8080 myimage
77
61
```
78
62
79
-
80
-
**Setting in `docker-compose` file using the `environment:` keyword in a `docker-compose` file**
63
+
### Setting in `docker-compose` file using the `environment:` keyword in a `docker-compose` file
81
64
82
65
```yml
83
66
version: '2.2'
@@ -88,8 +71,10 @@ services:
88
71
LISTEN_PORT: 8080
89
72
```
90
73
74
+
Inspired by the project at [tiangolo/UWSGI-NGINX-DOCKER](https://github.com/tiangolo/uwsgi-nginx-docker).
75
+
76
+
## UPDATES
91
77
92
-
# UPDATES
93
78
- 2017-12-11: Added multiple tags per variant: `py3.6` is the same as `python3.6`, and so forth...
94
79
- 2017-11-29: Added ability to change port Nginx listens on with new environment variable `LISTEN_PORT`.
95
80
- Thanks to github user [tmshn](https://github.com/tmshn)
@@ -98,8 +83,8 @@ services:
98
83
- 2017-11-29: Automatic image re-build when Python updates
99
84
- 2017-11-28: Updated Nginx version installed on non-Alpine images
100
85
86
+
## CHANGELOG
101
87
102
-
# FIXES
103
88
- 2017-12-15: Fix to avoid duplicate listen entries in nginx.conf
104
89
- 2017-11-30: Alpine images - eliminated uWSGI random build failures
0 commit comments