/docker-nginx-pagespeed

🏂 Lightweight Docker Image (alpine) include Nginx with PageSpeed module

Primary LanguageShell

🏂 Lightweight Docker Image include Nginx with PageSpeed module

Build Status

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.

PageSpeed

The PageSpeed tools analyze and optimize your site following web best practices.

Supported tags and Dockerfile links

This image is published in the Docker Hub as lagun4ik/nginx-pagespeed

Configuration

The config is set using environments

#default values
PAGESPEED_ENABLE=on # || off

Example compose file

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