nginx w/http2 + php
10K+
This is a fork of wonderfall/nginx-php built with HTTP/2 support
What is Nginx?
nginx (engine x) is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP proxy server, originally written by Igor Sysoev. For a long time, it has been running on many heavily loaded Russian sites including Yandex, Mail.Ru, VK, and Rambler. According to Netcraft, nginx served or proxied 24.29% busiest sites in December 2015. Here are some of the success stories: Netflix, Wordpress.com, FastMail.FM.
What is PHP?
PHP is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.
docker build -t xataz/nginx-php github.com/xataz/dockerfiles.git#master:nginx-php
docker build -t xataz/nginx-php \
--build-arg NGINX_VER=1.10.1 \
--build-arg PHP_VER=5.6.27 \
--build-arg PHP_EXT_LIST="gd mysqli gmp" \
--build-arg CUSTOM_BUILD_PKGS="freetype-dev gmp-dev" \
--build-arg CUSTOM_PKGS="freetype gmp" \
github.com/xataz/dockerfiles.git#master:nginx-php
if you mount /nginx/conf.d, use this php.conf :
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass unix:/php/run/php-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /nginx/conf/fastcgi_params;
}
docker run -d -p 8080:8080 xataz/nginx-php
URI access : http://XX.XX.XX.XX:8080
docker run -d -p 80:8080 -p 443:8443 \
-v /docker/nginx/sites-enabled:/nginx/sites-enabled \
-v /docker/nginx/certs:/nginx/certs \
-e UID=1001 \
-e GID=1001 \
xataz/nginx-php
URI access : http://XX.XX.XX.XX
Any contributions, are very welcome !
Content type
Image
Digest
sha256:285a26e70…
Size
289.9 MB
Last updated
about 2 months ago
docker pull jricks92/nginx-php-http2