Docker image based on the official php image (fpm-alpine) embedding some useful extensions (intl, mbstring, pdo, gd, ...) for Symfony projects.
Default image don't have any debug tools, but you can use the debug
image to have xdebug and pcov.
The 'cli' image is also available for running php scripts.
The working directory is /usr/share/nginx/html
for the default
and debug
images, and /app
for the cli
image.
Exemple of a docker-compose.yml
file using the enabel/php:8.3
image:
php:
image: enabel/php:8.3
volumes:
- ./:/usr/share/nginx/html
Example of a docker-compose.yml
file using with pcov and php.ini customization:
php:
image: enabel/php:8.3-debug
volumes:
- ./:/usr/share/nginx/html
- ./php.ini:/usr/local/etc/php/conf.d/custom.ini
docker run --rm -v $(pwd):/app/ enabel/php:8.3-cli php /app/script.php
Feel free to contribute, like sending pull requests to add features/tests or creating issues
This project is open-sourced software licensed under the GNU AGPLv3 License.
Originally designed by Damien Lagae. If you have any questions, please contact Damien Lagae.