Deploy a secure and minimal PHP-FPM container image built by Minimus to optimize security
compose.yaml
:
nginx.conf
:
php
folder and save the following code to a Dockerfile in the /php
directory:
RUN docker-php-ext-install pdo pdo_mysql
.
Create an nginx
folder and save the following code to a Dockerfile in the /nginx
directory:
src
folder and save the following code to a new file index.php
under the /src
directory:
/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: