Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description


This is a Docker base image for PHP-based apps. It allows for deployment of source code either by mounting a folder or download at runtime from a ZIP file which can be located on any HTTP server accessible to the running container.

Creating compatible PHP apps

The directory structure of a PHP app compatible with this container should have a web directory which contains an index.php file. All requests for files that do not exist in the web directory are URL-rewritten to this entry file. Other directories can be used to store files which do not need to be exposed through the webserver, such as classes, dependencies and configuration.

Installed packages

The latest image contains:

  • CentOS 7
  • lighttpd with mod_fastcgi and mod_rewrite
  • PHP 5.4.16 with pdo, mysql, dom, mbstring, apc, pecl-redis and gd packages

How to run

Mounting external source

docker run jadoos/php-app-base -p 80:80 -v /path/to/source:/var/www/app

Deploying application from ZIP file

docker run jadoos/php-app-base -p 80:80 -e PACKAGE_ZIP_URL=

Advanced configuration

You can specify the number of FastCGI PHP processes for handling incoming requests by setting the PHP_PROCESS_COUNT environment variable when running the container. The container automatically decides whether and how many child processes to use.

Docker Pull Command
Source Repository