PHP-fpm with gRPC extension for arm64 and amd64
10K+
PHP-FPM with the grpc PECL extension prebuilt and enabled.
Multi-arch (linux/amd64 + linux/arm64).
Drop-in replacement for the official php:*-fpm image when your service speaks gRPC.
php:<ver>-fpm base (Debian).grpc-stable compiled via pecl install in a builder stage./usr/local/etc/php/conf.d/20-grpc.ini with extension=grpc.so..so artifacts to keep the runtime layer small.ca-certificates added on top of the upstream image.CMD from the upstream image — starts php-fpm.docker pull beabys/php-grpc:8.5.12-fpm-grpc
docker run -d
--name php-grpc
-p 9000:9000
-v "$(pwd)/app:/var/www/html"
beabys/php-grpc:8.5.12-fpm-grpc
The inherited CMD ["php-fpm"] from php:*-fpm starts php-fpm on port 9000. Mount your project into /var/www/html.
services:
php-grpc:
image: beabys/php-grpc:8.5.12-fpm-grpc
ports:
- "9000:9000"
volumes:
- ./app:/var/www/html
restart: unless-stoppeddocker run --rm beabys/php-grpc:8.5.12-fpm-grpc php -m | grep -i grpc
# grpclinux/amd64linux/arm64
This image ships only the PHP grpc extension. It does not include
protoc or the grpc_php_plugin code generators.
Generate stubs in a separate build stage or on the host.
Content type
Image
Digest
sha256:68db47832…
Size
181.9 MB
Last updated
4 days ago
docker pull beabys/php-grpc