Ready to use, secure and lean docker images.
A docker image based on debian stretch containing the nginx web server with ngx_pagespeed, a web performance module.
A real world example would probably use it as base image for a custom image. Here is a minimalistic working dockerfile.
You may want to override the /etc/nginx
directory with your own configuration.
You can have a look at the basic okdocker/nginx example.
/var/cache/nginx/
: cache-related stuff for nginx; on-disk pagespeed cache should go in a subfolder./etc/nginx/
: nginx configuration/var/www/
: static files, usually one subfolder per site.nginx path prefix: "/etc/nginx"
nginx binary file: "/usr/sbin/nginx"
nginx modules path: "/usr/lib/nginx/modules"
nginx configuration prefix: "/etc/nginx"
nginx configuration file: "/etc/nginx/nginx.conf"
nginx pid file: "/var/run/nginx.pid"
nginx error log file: "/var/log/nginx/error.log"
nginx http access log file: "/var/log/nginx/access.log"
nginx http client request body temporary files: "/var/cache/nginx/client_temp"
nginx http proxy temporary files: "/var/cache/nginx/proxy_temp"
nginx http fastcgi temporary files: "/var/cache/nginx/fastcgi_temp"
nginx http uwsgi temporary files: "/var/cache/nginx/uwsgi_temp"
nginx http scgi temporary files: "/var/cache/nginx/scgi_temp"