Sign inSign up

mirkovoss/dockervel

By mirkovoss

โ€ขUpdated about 1 year ago

Lightweight PHP 8.3 FPM Alpine image for your Laravel or PHP 8.3 app.

Image
Languages & frameworks
0

176

mirkovoss/dockervel repository overview

๐Ÿ˜ 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:

  • pdo_mysql
  • mysqli
  • gd (with JPEG, PNG, and FreeType support)
  • pcntl

Tools Installed:

  • bash
  • vim
  • nano-
  • unzip

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.

Tag summary

Content type

Image

Digest

sha256:f7ab00242โ€ฆ

Size

149.1 MB

Last updated

about 1 year ago

docker pull mirkovoss/dockervel:php-8.3