A lightweight Docker image for Lighttpd, a secure, fast, and flexible web server optimized for high-performance environments.
- Based on Debian slim for minimal footprint
- Automatic detection of
public/subdirectory as document root - Simple volume-based configuration
- Ready for production use
- Docker
- (Optional) Docker Compose
docker run -d \
-p 8080:80 \
-v $(pwd)/www:/www \
--name lighttpd \
semhoun/lighttpdversion: "3.8"
services:
lighttpd:
image: semhoun/lighttpd
container_name: lighttpd
volumes:
- ./www:/www
ports:
- "8080:80"
restart: unless-stoppedThen run:
docker-compose up -d| Path | Description |
|---|---|
/www |
Web root directory. If a public/ subdirectory exists, it will be used as the document root automatically. |
| Port | Description |
|---|---|
80 |
HTTP port |
./www/
├── index.html # Main entry point
└── ...
git clone https://github.com/nathanael-semhoun/docker_lighttpd.git
cd docker_lighttpd
docker build -t my-lighttpd .This project is licensed under the MIT License. See LICENSE for details.
- Nathanaël Semhoun – @semhoun