Tag: php

How to install php-redis extension using the official PHP Docker image approach?

I want to build my PHP-FPM image with php-redis extension based on the official PHP Docker image, for example, using this Dockerfile: php:5.6-fpm. The docs say that I can install extensions this way, installing dependencies for extensions manually: FROM php:5.6-fpm # Install modules (iconv, mcrypt and gd extensions) RUN apt-get update && apt-get install -y […]

How can I debug my docker container with phpStorm

Under the following IP my Container run successful in my Webbrowser I have also create a volume to share files between my container and my filesystem docker run –name lampf -d -p 32775:80 -v /Users/sja/Sites/lamkepf2:/var/www/html –link=lampf_db:db codinglimo/apache_php540_gs_imgmck_pdflib9 Now I install also xDebug successful in my container with the following xdebug.ini zend_extension=”/usr/local/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so” xdebug.remote_enable=on xdebug.remote_host= xdebug.remote_port=9000 […]

Get composer (php dependency manager) to run on a docker image build

NOTE: I no longer use this environment so there is no way for me to test the answers and accept one. I’m sorry. TL;DR Can you point me to an example of a docker image that uses composer to handle PHP dependencies? All my questions in this post are regarding composer the php dependency tool […]

How to correctly link php-fpm and Nginx Docker containers?

I am trying to link 2 separate containers: nginx:latest php:fpm The problem is that php scripts do not work. Perhaps the php-fpm configuration is incorrect. Here is the source code, which is in my repository. Here is the file docker-compose.yml: nginx: build: . ports: – “80:80” – “443:443” volumes: – ./:/var/www/test/ links: – fpm fpm: […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.