This docker image based on Alpine. Alpine is based on Alpine Linux, lightweight Linux distribution based on BusyBox. The size of the image is very small.
The PageSpeed tools analyze and optimize your site following web best practices.
This image is published in the Docker Hub as lagun4ik/nginx-pagespeed
The config is set using environments
#default values
PAGESPEED_ENABLE=on # || off
version: '2'
services:
nginx:
image: lagun4ik/nginx-pagespeed
restart: always
ports:
- '80:80'
- '443:443'
volumes:
- ./sites-enabled:/etc/nginx/sites-enabled
- ./www/:/var/www/
- ./cache/ngx_pagespeed:/var/cache/ngx_pagespeed