added git support
Dockerfile for PHP 7.3.3 fpm
https://hub.docker.com/repository/docker/petranek80/php7.3.3-fpm-xdebug-git
php:
image: petranek80/php7.3.3-fpm-xdebug-git
volumes:
- ".:/var/www/html"
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/custom.php.ini"
/etc/php/php.ini
[pdo_mysql]
pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock
add to nginx config file (etc. default.template.conf)
server {
...
location ~ \.php$ {
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Content type
Image
Digest
Size
303.2 MB
Last updated
over 5 years ago
docker pull petranek80/php7.3.3-fpm-xdebug-git