Lightweight PHP 8.3 FPM Alpine image for your Laravel or PHP 8.3 app.
176
๐ PHP 8.3 FPM on Alpine 3.20 โ Multi-Role Container
A lightweight and production-ready PHP 8.3 FPM image based on Alpine Linux 3.20, optimized for Laravel and other modern PHP applications. This image includes a flexible run.sh entrypoint to run your container in different modes: app, queue, or scheduler.
๐ Features
Base Image: php:8.3-fpm-alpine3.20
PHP Extensions:
Tools Installed:
composer (global: /usr/bin/composer)
Working Directory: /var/www
User: www-data (non-root for better security)
Entrypoint: /var/www/run.sh
โ๏ธ Supported Roles
app: Runs PHP-FPM (default)
queue: Runs Laravel queue worker
scheduler: Runs Laravel scheduler every 60 seconds
You can select the role by setting the CONTAINER_ROLE environment variable.
๐งฑ How to Run
Run the PHP-FPM application (default):
docker run -d
-e CONTAINER_ROLE=app
-v $(pwd):/var/www
mirkovoss/dockervel:php-8.3
Run a Laravel queue worker:
docker run -d
-e CONTAINER_ROLE=queue
-v $(pwd):/var/www
mirkovoss/dockervel:php-8.3
Run the Laravel scheduler:
docker run -d
-e CONTAINER_ROLE=scheduler
-v $(pwd):/var/www
mirkovoss/dockervel:php-8.3
๐งพ Summary
This image provides a secure, minimal, and flexible PHP-FPM environment for Laravel or other PHP 8.3 applications. It supports multiple runtime roles in a single container and comes with all common PHP extensions and developer tools pre-installed.
Content type
Image
Digest
sha256:f7ab00242โฆ
Size
149.1 MB
Last updated
about 1 year ago
docker pull mirkovoss/dockervel:php-8.3