composer is enabled. docker-compose run php compose
Enabled extra extensions are (which not enabled default in PHP official version):
version: '2'
services:
php:
image: "daijie/php7-alpine"
volumes:
- ./src:/var/www
/var/wwwPlace your php.ini and php-fpm.conf into the same dir of docker-compose.yml
version: '2'
services:
php:
image: "daijie/php7-alpine"
volumes:
- ./src:/var/www
- ./php.ini:/usr/local/etc/php/php.ini
- ./php-fpm.conf:/usr/local/etc/php-fpm.d/www.conf
You can fork and modify this Dockerfile
Content type
Image
Digest
Size
100.8 MB
Last updated
over 8 years ago
docker pull daijie/php7-alpine