PHP image configured and added tools like composer, node, npm, laravel installer, symfony CLI
146
docker compose example: If your local user is not id 1000, create a .env like below. You can check using the "id" command in your terminal:
PUID=1001
PGID=1001
services:
php:
image: jensr22/php-development:8.5
container_name: myapp-php
restart: on-failure
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- ./:/var/www
environment:
PUID: ${PUID:-1000}
PGID: ${PGID:-1000}
PHP_IDE_CONFIG: serverName=docker-server
ports:
- "127.0.0.1:8000:80"
Open bash shell of this container using user named docker:
docker compose exec -u docker app bash
Content type
Image
Digest
sha256:c070cd5ea…
Size
336.8 MB
Last updated
18 days ago
docker pull jensr22/php-development:8.5