PHP-Lighttpd is a Dockerfile to build a Lighttpd image with PHP-FPM and FastCGI.
Prebuilt images are built weekly and are available on Docker Hub at siebsie23/php-lighttpd
The images are built on multiple distros which can be found in the table below. All images are built to support the amd64
and arm64
architectures.
Available tags:
PHP Version | Tags |
---|---|
8.3 | 8.3-alpine 8.3-bullseye |
8.2 | 8.2-alpine 8.2-bullseye |
8.1 | 8.1-alpine 8.1-bullseye |
8.0 | 8.0-alpine 8.0-bullseye |
Clone the git repository and build the image with make build PHP_VERSION="phpversion" DISTRO="distro"
phpversion being a valid php-fpm docker image version and distro being one of alpine
or bullseye
.
- The quickest way to get started is by using a prebuilt image i.e.
siebsie23/php-lighttpd:8.3-alpine
and linking the/var/www/
directory to a host directory containing your HTML or PHP files. - Map persistent storage for access to configuration and data files for backup.
The following directories are used for configuration and can be mapped for persistent storage.
Directory | Description |
---|---|
/var/www/ |
Directory to serve your static or PHP files. |
This image relies on the official PHP-fpm image. While building either one of the following is used based on the requested distribution:
- php:*-fpm-alpine
- php:*-fpm-bullseye
Port | Description |
---|---|
80 |
Default port serving your web files |
- Please, submit a Bug Report if something isn't working as expected. I'll do my best to issue a fix in short order.
GNU GPLv3. See LICENSE for more details.