Sign inSign up

donuk/nginxfromenv

By donuk

Updated about 2 months ago

Runs nginx using a config file from an environment variable

Image
0

703

donuk/nginxfromenv repository overview

Also on github:

https://github.com/donuk/docker-nginxfromenv

Serve a webpage which returns only the text "Hello World":

CONFIG="
        events {}
        http {
            server {
                listen 80;
                location / { return 200 'Hello, World'; }
            }
        }
"

docker run -p 80:80 -e CONFIG="$CONFIG" --rm donuk/nginxfromenv

Tag summary

Content type

Image

Digest

sha256:2adffe21c

Size

69.6 MB

Last updated

about 2 months ago

docker pull donuk/nginxfromenv