All Projects → Yavin → Docker Alpine Php Fpm

Yavin / Docker Alpine Php Fpm

Licence: mit
Docker image for php-fpm based on alpine linux that makes it small

Projects that are alternatives of or similar to Docker Alpine Php Fpm

Larakube
Laravel app deployment for auto scaled Kubernetes cluster
Stars: ✭ 157 (+74.44%)
Mutual labels:  docker-image, nginx
Uwsgi Nginx Docker
Docker image with uWSGI and Nginx for applications in Python 3.5 and above and Python 2.7 (as Flask) in a single container. Optionally with Alpine Linux.
Stars: ✭ 466 (+417.78%)
Mutual labels:  docker-image, nginx
Nginx
NGINX Accelerated! This is a Docker image that creates a high performance (FAST!), optimized image for NGINX for use with Redis and PHP-FMP. Deliver sites and applications with performance, reliability, security, and scale. This NGINX server offers advanced performance, web and mobile acceleration, security controls, application monitoring, and management.
Stars: ✭ 157 (+74.44%)
Mutual labels:  docker-image, nginx
Docker Nginx Basic Auth
🔐 Simple Docker image for basic authentication
Stars: ✭ 111 (+23.33%)
Mutual labels:  docker-image, nginx
Nano Nginx
Nano container with nginx preconfigured as reverse proxy
Stars: ✭ 15 (-83.33%)
Mutual labels:  docker-image, nginx
Nginx Vod Module Docker
Docker image for nginx with Kaltura's VoD module used by The New York Times
Stars: ✭ 121 (+34.44%)
Mutual labels:  docker-image, nginx
Uwsgi Nginx Flask Docker
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Stars: ✭ 2,607 (+2796.67%)
Mutual labels:  docker-image, nginx
Docker Oidc Proxy
Docker Image built on Alpine Linux for secure OpenID Connect (OIDC) proxy authentication
Stars: ✭ 91 (+1.11%)
Mutual labels:  docker-image, nginx
Janus Webrtc Gateway Docker
Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
Stars: ✭ 582 (+546.67%)
Mutual labels:  docker-image, nginx
Docker Alpine
Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
Stars: ✭ 574 (+537.78%)
Mutual labels:  docker-image, nginx
Nginx Php Fpm
Nginx and php-fpm for dockerhub builds
Stars: ✭ 1,419 (+1476.67%)
Mutual labels:  docker-image, nginx
Dockerfiles
lots of dockerfiles, based on alpine
Stars: ✭ 69 (-23.33%)
Mutual labels:  docker-image, nginx
Docker Laravel
🐳 Docker Images for Laravel development
Stars: ✭ 101 (+12.22%)
Mutual labels:  docker-image, nginx
Ngx Fastdfs
nginx + lua +fastdfs Real-time dynamic compression of distributed pictures
Stars: ✭ 146 (+62.22%)
Mutual labels:  docker-image, nginx
Ecs Nginx Proxy
Reverse proxy for AWS ECS. Lets you address your docker containers by sub domain.
Stars: ✭ 93 (+3.33%)
Mutual labels:  docker-image, nginx
Bitnami Docker Nginx
Bitnami nginx Docker Image
Stars: ✭ 198 (+120%)
Mutual labels:  docker-image, nginx
Nginx Rtmp Docker
Docker image with Nginx using the nginx-rtmp-module module for live multimedia (video) streaming.
Stars: ✭ 506 (+462.22%)
Mutual labels:  docker-image, nginx
Magento2 Varnish Redis Ssl Docker Compose
Deploy Magento2 with Varnish Cache and Redis with SSL termination using Docker-compose tool
Stars: ✭ 37 (-58.89%)
Mutual labels:  docker-image, nginx
Dockerfile
📦 Dockerfiles from WebDevOps for PHP, Apache and Nginx (with PHP5 and PHP7)
Stars: ✭ 1,169 (+1198.89%)
Mutual labels:  docker-image, nginx
Deep Learning Boot Camp
A community run, 5-day PyTorch Deep Learning Bootcamp
Stars: ✭ 1,270 (+1311.11%)
Mutual labels:  docker-image

Docker image for php-fpm

Build Status

Tags:

Image for php-fpm. It is based on Alpine linux and thats why it is very small (~65MB). Included extensions are required for Symfony framework 3+, that's why it should also work with other applications.

  • PHP 7.1.10

Running

docker run --rm -p 9000:9000 -v /path/of/application:/application yavin/alpine-php-fpm:7.1

Following nginx configuration allow to connect to this FPM setup:

server {
    # here some other configuration...

    location ~ \.php(/|$) {
        include       fastcgi_params;
        fastcgi_param DOCUMENT_ROOT   /application/web;
        fastcgi_param SCRIPT_FILENAME /application/web$fastcgi_script_name;
        fastcgi_pass  fpm-host-name:9000;
    }
}

Please note the path that is passed to FPM and compare it with the docker run command. Above example assume that the /application/web is the "public" folder of your app. If paths in FPM container are the same as in Nginx you can replace it with $realpath_root nginx variable.

Custom php.ini settings

Create Dockerfile file with fallowing content and php.ini file with desired settings (look at php.ini file in this repository)

FROM yavin/alpine-php-fpm:7.1
COPY php.ini /etc/php7/conf.d/50-setting.ini

And then

docker build -t my-php-fpm .
docker run --rm -p 9000:9000 -v /path/of/application:/application my-php-fpm:latest

Change FPM parameters

Copy php-fpm.conf and modify. You will probably want to change process manager settings:

; ...
pm.max_children = 10
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 5
; ...

and build your image:

FROM yavin/alpine-php-fpm:7.1
COPY php-fpm.conf /etc/php7/php-fpm.conf

Add extension that you need

FROM yavin/alpine-php-fpm:7.1
RUN apk --update add php7-ftp && rm -rf /var/cache/apk/*

PHP extensions included:

$ php -m
[PHP Modules]
bcmath
Core
ctype
curl
date
dom
fileinfo
filter
gd
hash
iconv
intl
json
libxml
mbstring
mcrypt
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
soap
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip

[Zend Modules]
Zend OPcache
Other php7 packages available in repository
$ apk --update search php7
php7-intl-7.1.3-r0
php7-openssl-7.1.3-r0
php7-dba-7.1.3-r0
php7-sqlite3-7.1.3-r0
php7-dev-7.1.3-r0
php7-pear-7.1.3-r0
php7-shmop-7.1.3-r0
php7-phpdbg-7.1.3-r0
php7-xmlwriter-7.1.3-r0
php7-pecl-7.1.3-r0
php7-posix-7.1.3-r0
php7-litespeed-7.1.3-r0
php7-gmp-7.1.3-r0
php7-pdo_mysql-7.1.3-r0
php7-bz2-7.1.3-r0
php7-pcntl-7.1.3-r0
php7-common-7.0.17-r4
php7-pdo-7.1.3-r0
php7-oauth-2.0.2-r0
php7-xsl-7.1.3-r0
php7-ctype-7.1.3-r0
php7-mbstring-7.1.3-r0
php7-fpm-7.1.3-r0
php7-mysqli-7.1.3-r0
php7-phar-utils-7.1.3-r0
php7-gmagick-2.0.4_rc1-r3
php7-imagick-3.4.3-r1
php7-mysqlnd-7.1.3-r0
php7-enchant-7.1.3-r0
php7-solr-2.4.0-r0
php7-uuid-1.0.4-r0
php7-curl-7.1.3-r0
php7-pspell-7.1.3-r0
php7-xmlrpc-7.1.3-r0
php7-imap-7.1.3-r0
php7-ast-0.1.4-r0
php7-libs-7.1.3-r0
php7-redis-3.1.2-r0
php7-phar-7.1.3-r0
php7-snmp-7.1.3-r0
php7-doc-7.1.3-r0
php7-fileinfo-7.1.3-r0
php7-opcache-7.1.3-r0
php7-sockets-7.1.3-r0
php7-lzf-1.6.5-r1
php7-xmlreader-7.1.3-r0
php7-dom-7.1.3-r0
php7-timezonedb-2017.2-r0
php7-apache2-7.1.3-r0
php7-pear-mail_mime-1.10.0-r0
php7-rdkafka-2.0.0-r0
php7-stats-2.0.3-r0
php7-embed-7.0.17-r4
php7-pdo_sqlite-7.1.3-r0
php7-pear-auth_sasl2-0.2.0-r0
php7-exif-7.1.3-r0
php7-msgpack-2.0.2-r0
php7-wddx-7.1.3-r0
php7-recode-7.1.3-r0
php7-ldap-7.1.3-r0
php7-xml-7.1.3-r0
php7-pdo_odbc-7.1.3-r0
php7-pear-net_socket-1.1.0-r0
php7-7.1.3-r0
php7-session-7.1.3-r0
php7-gd-7.1.3-r0
php7-gettext-7.1.3-r0
php7-mailparse-3.0.2-r0
php7-mcrypt-7.1.3-r0
php7-pdo_dblib-7.1.3-r0
php7-json-7.1.3-r0
php7-mongodb-1.2.8-r0
php7-sysvsem-7.1.3-r0
php7-calendar-7.1.3-r0
php7-iconv-7.1.3-r0
php7-sysvshm-7.1.3-r0
php7-soap-7.1.3-r0
php7-cgi-7.1.3-r0
php7-odbc-7.1.3-r0
php7-pdo_pgsql-7.1.3-r0
php7-zip-7.1.3-r0
php7-pgsql-7.1.3-r0
php7-xdebug-2.5.0-r1
php7-zlib-7.1.3-r0
php7-inotify-2.0.0-r0
php7-couchbase-2.2.3-r1
php7-config-7.1.3-r0
php7-amqp-1.9.0-r0
php7-cassandra-1.2.2-r0
php7-libsodium-1.0.6-r0
php7-pear-net_smtp-1.8.0-r1
php7-bcmath-7.1.3-r0
php7-tidy-7.1.3-r0
php7-zmq-1.1.3-r0
php7-memcached-3.0.3-r0
php7-apcu-5.1.8-r0
php7-sysvmsg-7.1.3-r0
php7-imagick-dev-3.4.3-r1
php7-ftp-7.1.3-r0
php7-ssh2-1.0-r0
php7-pear-net_idna2-0.2.0-r1
php7-pear-auth_sasl-1.1.0-r0
php7-pear-net_smtp-doc-1.8.0-r1
Licence

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].