nginx-alpine
nginx build with OpenSSL 1.1.1 for TLSv1.3 support
6.5K
docker run --rm --name nginx -v ./htdocs:/var/www -p 80:80 -p 443:443 -d ajoergensen/nginx-alpine:tag
Available tags are stable and mainline
PUID: Change the uid of the user running nginxPGID: Change the gid of the user running nginxCHOWN_WWWDIR: Enable/disable the change of ownership of /var/www to $PUID:$PGID, defaults to TRUE. Note, if /var/www read only this variable will always be FALSEWORKER_PROCESSES: Change the value of nginx worker_processes, defaults to auto.NGINX_CLIENT_MAX_BODY_SIZE: Set client_max_body_size, default is 50M.SERVER_TOKENS: Controls server_tokens. Set to on or off. Default is offCUSTOM_SERVER: Sets the Server: header to a custom value. Default is undefined.REMOTEIP: Restore remote IP if request if routed through a reverse proxy. Possible values: CLOUDFLARE (uses CF-Connecting-IP), DEFAULT (uses X-Forwarded-For) or NONE (disables this function). Default is disabled.Though not defined as a volume, I recommend mapping a folder to /etc/nginx/conf.d to store your vhost definitions.
This image works great with dns-gen and docker-letsencrypt-nginx-proxy-companion (as a drop-in replacement for the nginx-proxy image)
Originally based on the official nginx Dockerfile & Wonderfall/boring-nginx - Forked from denji/nginx-libressl
Content type
Image
Digest
sha256:40c0a292d…
Size
24.9 MB
Last updated
over 1 year ago
docker pull ajoergensen/nginx-alpine:mainline