- Support for multiple PHP applications
- Composer
- Blackfire extension or Xdebug extension
ℹ️ Only images of officially supported PHP versions are regularly updated.
docker run --interactive --tty --volume=$(pwd):/var/www/html ajardin/php:8.2 sh
services:
# [...]
php:
image: ajardin/php:8.2
environment:
- SSH_AUTH_SOCK=/run/host-services/ssh-auth.sock
volumes:
# Project files
- ${PROJECT_LOCATION}:/var/www/html:delegated
# Custom configuration
- ${PROJECT_LOCATION}/var/docker/php/php-cli.ini:/usr/local/etc/php/php-cli.ini:ro
- ${PROJECT_LOCATION}/var/docker/php/php-fpm-fcgi.ini:/usr/local/etc/php/php-fpm-fcgi.ini:ro
# SSH socket
- /run/host-services/ssh-auth.sock:/run/host-services/ssh-auth.sock
tty: true
# [...]