Sign inSign up

beabys/php-grpc

By beabys

•Updated 4 days ago

PHP-fpm with gRPC extension for arm64 and amd64

Image
Languages & frameworks
0

10K+

beabys/php-grpc repository overview

⁠beabys/php-grpc

Docker pulls Image size PHP versions

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.

⁠What is inside

  • Official php:<ver>-fpm base (Debian).
  • grpc-stable compiled via pecl install in a builder stage.
  • Extension enabled by /usr/local/etc/php/conf.d/20-grpc.ini with extension=grpc.so.
  • Stripped .so artifacts to keep the runtime layer small.
  • Minimal runtime deps: only ca-certificates added on top of the upstream image.
  • Inherited CMD from the upstream image — starts php-fpm.

⁠Quickstart

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.

⁠docker-compose

services:
  php-grpc:
    image: beabys/php-grpc:8.5.12-fpm-grpc
    ports:
      - "9000:9000"
    volumes:
      - ./app:/var/www/html
    restart: unless-stopped

⁠Verify the extension

docker run --rm beabys/php-grpc:8.5.12-fpm-grpc php -m | grep -i grpc
# grpc

⁠Architectures

  • linux/amd64
  • linux/arm64

⁠Not included

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.

Tag summary

Content type

Image

Digest

sha256:68db47832…

Size

181.9 MB

Last updated

4 days ago

docker pull beabys/php-grpc