A set of base containers to help with containerizing PHP apps.
10K+
A set of modern PHP docker images based on Alpine Linux using official PHP docker images as base.
| PHP Version | Base Images (CLI/FPM) | FPM+Cache | FPM+Cache+Database | Swoole |
|---|---|---|---|---|
| 8.1 | ✅ | ✅ | ✅ | ✅ |
| 8.2 | ✅ | ✅ | ✅ | ✅ |
The base images come in a CLI or FPM variant for you to use depending on your project needs. Most users should probably use the PHP-FPM one for sites/apps. However the CLI one can be useful for cron jobs.
Both versions of the base image will come with the same PHP extensions. Currently these are:
These will all be based by the respective PHP version's base FPM image.
So these will always be FPM based and include the same extensions listed above.
In addition to the expected extensions these include both: redis and memcached extensions.
These are based on the Cache variant for the respective PHP version.
This means they include everything in FPM base + cache and some database extensions.
Currently, these variants only generate a mysql variant that includes the pdo_mysql extension.
These are based on the mysql variant for each respective version. They include all the base image as well as the openswoole extension.
Content type
Image
Digest
sha256:d77b00a77…
Size
184.5 MB
Last updated
over 1 year ago
docker pull mallardduck/base-php:8.2-cli