A PHP image for local web development extended with most often used services.
446
8.3-fpm, latestmustakrakishe/php is a customized PHP image for local web development. It is extended with:
There are some requirements:
/var/www/html one./usr/local/etc/php/conf.d directory;host.docker.internal:host-gateway to the service.Also, you are able to pass addition config files.
Via compose.yml:
services:
php:
build: mustakrakishe/php
expose: 9000
extra_hosts:
host.docker.internal: host-gateway
volumes:
- ./app:/var/www/html
- ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
Or via CLI:
docker run --rm -d \
--expose 9000 \
--add-host host.docker.internal:host-gateway \
-v ./app:/var/www/html \
-v ./docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
-v ./docker/php/php.ini:/usr/local/etc/php/php.ini \
mustakrakishe/php
Content type
Image
Digest
sha256:242386e57…
Size
186.1 MB
Last updated
over 2 years ago
docker pull mustakrakishe/php