Base image for PHP
391
PHP 8 + Apache + Xdebug + Composer
services:
app:
image: felipegangrel/php
volumes:
- .:/var/www/html
ports:
- 80:80
environment:
PHP_OPCACHE_VALIDATE_TIMESTAMPS: 1 # 0 for production (enables opcache)
I recommend using the PHP Debug extension. Here is a sample configuration for the launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug Docker",
"type": "php",
"request": "launch",
"log": true,
"hostname": "localhost",
"port": 9003,
"pathMappings": {
"/var/www/html": "${workspaceFolder}"
},
}
]
}
For more information, see the Xdebug documentation.
Content type
Image
Digest
sha256:f5212686f…
Size
336.3 MB
Last updated
over 1 year ago
docker pull felipegangrel/php