Nginx web server Docker image, compiled from release source.
338
Dockerfile using Ubuntu 18.04 as base which provides:
/var/log/nginx (optionally passed to host)./srv/http.80 (HTTP) and 443 (HTTPS) exposed at 8080 and 8443 respectively.To build Docker image:
$ ./build.sh
Alternatively pull the image direct from Docker Hub:
$ docker pull magnetikonline/nginx
Then to run:
$ ./run.sh \
-c /path/to/nginx.conf \
-d /path/to/docroot
Or to additionally pass Nginx logs back to host:
$ ./run.sh \
-c /path/to/nginx.conf \
-d /path/to/docroot \
-l /path/to/logs
An Nginx configuration example located under resource/conf.
Content type
Image
Digest
Size
27.1 MB
Last updated
about 5 years ago
docker pull magnetikonline/nginx:1.20.1