Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

RealOrangeOne/docker-mod-nginx-auto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-mod-nginx-auto

Deprecated: See https://github.com/RealOrangeOne/docker-lsio-mod-more-processes.

Docker mod to set worker processes to auto for LSIO containers.

By default, any LSIO nginx installation ships using 4 worker processes, which is inefficient for high-core machines. I've opened PRs before, but they were all rejected for "backwards compatibility".

This docker mod modifies the nginx config prior to startup, setting it to auto, which makes it match the number of available CPU cores. This matches how nginx is configured by default in Docker, so is stable.

Usage

On any of your LSIO containers, set the following environment variable:

DOCKER_MODS=theorangeone/docker-mod-nginx-auto:latest

More about docker mods