Skip to content

RegioX/lighttpd-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lighttpd-docker

GitHub license GitHub release Docker Pulls

A simple lighttpd image that doesn't use an entrypoint script.

TL;DR

docker build -t pdok/lighttpd .
docker run --rm -p 80:80 --name lighttpd-example -v `pwd`/config:/srv/lighttpd pdok/lighttpd

docker stop lighttpd-example

Introduction

This project aims to fulfill the need in creating a lighttpd container that is deployable on a scalable infrastructure, like Kubernetes. This means that this images is based on a lightweight base-image and tries to have no specific configuration, like COPY commands in the Dockerfile.

What will it do

It will start a small container containing lighttpd.

Usage

Build

docker build -t pdok/lighttpd .

Run

This image can be run straight from the commandline. A volume needs to be mounted on the container directory /srv/lighttpd/config. The mounted volume needs to contain a lighttpd.conf file.

docker run --rm -p 80:80 --name lighttpd-example -v `pwd`/config:/srv/lighttpd pdok/lighttpd

Running the example above will create a service on the url http://localhost/

The ENV variables that can be set are the following

DEBUG
MIN_PROCS
MAX_PROCS
MAX_LOAD_PER_PROC
IDLE_TIMEOUT

The ENV variables have a default value set in the Dockerfile.

Misc

How to Contribute

Make a pull request...

Contact

Contacting the maintainers can be done through the issue tracker.

About

A simple lighttpd image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 59.3%
  • HTML 40.7%