Welcome to PHP-FPM - Built by Minimus!";
echo "
👍 Looking great!
";
echo "
Your PHP-FPM server is up and running.
";
$currentTime = date("Y-m-d H:i:s");
echo "
Current time: $currentTime
";
?>
```
Create a directory `/letsencrypt`.
Your project directory should now look like this:
```text theme={null}
project-root/
├── compose.yaml
├── nginx.conf
├── letsencrypt/
├── nginx/
├ └── Dockerfile
├── php/
├ └── Dockerfile
└── src/
└── index.php
```
Run the app:
```bash theme={null}
docker compose up -d
```
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:
```bash theme={null}
docker compose down -v
```
# Python Tutorial
Source: https://docs.minimus.io/guides/python
Build a secure and minimal python app using the Minimus python image
In this tutorial, we will build a custom Python app using Docker Compose and a multi-stage Dockerfile. The build stage uses `latest-dev` because it requires the package installer `pip`. The runtime stage uses the fully distroless image to achieve the most secure app.