A single container image that runs Caddy, PHP-FPM and has XDebug enabled. You should be able to use this, and just add your application and start going.
The default Caddyfile expects your app installed to /app and the webroot at /app/webroot
Use --volume to use load your own, or tweak the Caddyfile
docker run --rm -it \
-p 8080:80 \
--volume ./sysroot/Caddyfile:/etc/caddy/Caddyfile \
--volume ./approot:/app \
caddy-php-xdebugHere's one in a single container. I want that, with Xdebug
https://gist.github.com/Baldinof/8af17f09c7a57aa468e1b6c66d4272a3