Skip to main content
PHP-FPM (FastCGI Process Manager) is an alternative FastCGI daemon for PHP that optimizes performance and scalability and can support strenuous loads by managing a pool of PHP worker processes. While PHP is tightly coupled with Apache, PHP-FPM has its own process manager and is typically coupled with a web server like NGINX or Nginx Proxy Manager.

Deploy a PHP-FPM server

The following tutorial will guide you through the first steps of deploying the Minimus PHP-FPM container image. In this scenario, we will run the PHP-FPM server with Nginx Proxy Manager for SSL certificates. In your project folder, save the following code to a new Docker Compose file compose.yaml:
compose.yaml
In the same directory, save the following code to a new file nginx.conf:
nginx.conf
Create a php folder and save the following code to a Dockerfile in the /php directory:
Dockerfile
If you want to enable additional extensions then you can create a private image in Image Creator with the appropriate additional extensions. Create an nginx folder and save the following code to a Dockerfile in the /nginx directory:
Dockerfile
Create a src folder and save the following code to a new file index.php under the /src directory:
index.php
Create a directory /letsencrypt. Your project directory should now look like this:
Run the app:
Open your web browser to view the welcome page at: http://localhost:8080. You should see a Minimus greeting with the current time. Once ready to clean up, run the following command to remove the containers and their associated volumes:
Last modified on June 9, 2026