image: hoanghd/php-fpm:8.2
image: hoanghd/php-fpm:8.1
image: hoanghd/php-fpm:8.0
image: hoanghd/php-fpm:7.4
image: hoanghd/php-fpm:5.5
intl
redis
mailparse
imagick
ldap
pdo_pgsql
pgsql
mysqli
pdo_mysql
imap
gd
xsl
soap
sockets
pcntl
bcmath
calendar
exif
zip
bz2
opcache
composer
version: "3"
services:
nginx:
container_name: nginx
image: nginx:alpine
restart: always
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
depends_on:
- php-fpm
php-fpm:
container_name: php-fpm
image: hoanghd/php-fpm:8.2
restart: always
volumes:
- .:/var/www/html
server {
listen 80;
#listen 443 ssl;
server_name localhost;
#ssl_certificate /etc/nginx/ssl/server.crt;
#ssl_certificate_key /etc/nginx/ssl/server.key;
#ssl_ciphers HIGH:!aNULL:!MD5;
charset utf-8;
root /var/www/html;
index index.html index.htm index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
set $x_requested_with $http_x_requested_with;
if ($request_uri !~ "^/blogparts*") {
add_header X-Frame-Options "SAMEORIGIN";
}
fastcgi_max_temp_file_size 0;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param URI $1;
fastcgi_intercept_errors on;
}
}
version: "3"
services:
httpd:
container_name: httpd
image: httpd:alpine
restart: always
ports:
- 80:80
volumes:
- ./httpd.conf:/usr/local/apache2/conf/httpd.conf
- .:/usr/local/apache2/htdocs
depends_on:
- php-fpm
php-fpm:
container_name: php-fpm
image: hoanghd/php-fpm:8.2
restart: always
volumes:
- .:/usr/local/apache2/htdocs
docker run --rm httpd:alpine cat /usr/local/apache2/conf/httpd.conf > httpd.conf
<FilesMatch \.php$>
SetHandler "proxy:fcgi://php-fpm:9000"
</FilesMatch>
Content type
Image
Digest
sha256:971740003…
Size
84.3 MB
Last updated
almost 3 years ago
docker pull hoanghd/php-fpm:5.5