oneoffcoder/nginx-port

By oneoffcoder

Updated almost 7 years ago

A container showing how to run nginx on a port specified at runtime through an environment variable.

Image
0

166

oneoffcoder/nginx-port repository overview

Purpose

A container demonstrating how to run nginx on a port passed in from an environment variable.

Source

GitHub

Docker

Pull it.

docker pull oneoffcoder/nginx-port:latest

Run it.

docker run -p 81:81 -e PORT=81 --rm oneoffcoder/nginx-port
docker run -p 82:82 -e PORT=82 --rm oneoffcoder/nginx-port
docker run -p 83:83 -e PORT=83 --rm oneoffcoder/nginx-port

Observe it.

Tag summary

Content type

Image

Digest

Size

11.1 MB

Last updated

almost 7 years ago

docker pull oneoffcoder/nginx-port