Skip to content

semhoun/docker_lighttpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighttpd Docker Image

License: MIT Docker Image Size Docker Pulls

A lightweight Docker image for Lighttpd, a secure, fast, and flexible web server optimized for high-performance environments.

Features

  • Based on Debian slim for minimal footprint
  • Automatic detection of public/ subdirectory as document root
  • Simple volume-based configuration
  • Ready for production use

Prerequisites

Quick Start

Docker

docker run -d \
  -p 8080:80 \
  -v $(pwd)/www:/www \
  --name lighttpd \
  semhoun/lighttpd

Docker Compose

version: "3.8"

services:
  lighttpd:
    image: semhoun/lighttpd
    container_name: lighttpd
    volumes:
      - ./www:/www
    ports:
      - "8080:80"
    restart: unless-stopped

Then run:

docker-compose up -d

Configuration

Volumes

Path Description
/www Web root directory. If a public/ subdirectory exists, it will be used as the document root automatically.

Ports

Port Description
80 HTTP port

Project Structure

./www/
├── index.html          # Main entry point
└── ...

Building from Source

git clone https://github.com/nathanael-semhoun/docker_lighttpd.git
cd docker_lighttpd
docker build -t my-lighttpd .

License

This project is licensed under the MIT License. See LICENSE for details.

Author

Links

About

Simple lighttpd for simple file serving

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors