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. To begin, authenticate to the Minimus registry:compose.yaml
:
compose.yaml
nginx.conf
:
nginx.conf
php
folder and save the following code to a Dockerfile in the /php
directory:
Dockerfile
RUN docker-php-ext-install pdo pdo_mysql
.
Create an nginx
folder and save the following code to a Dockerfile in the /nginx
directory:
Dockerfile
src
folder and save the following code to a new file index.php
under the /src
directory:
index.php
/letsencrypt
.
You project directory should now look like this:
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: