Runs nginx using a config file from an environment variable
703
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
Content type
Image
Digest
sha256:2adffe21c…
Size
69.6 MB
Last updated
about 2 months ago
docker pull donuk/nginxfromenv