PHP-FPM 7.1.12 use ONLY for development environment
Good for the latest stable version of symfony
Based on php:7.1.12-fpm
- PHP-FPM 7.1.12 (on port 9001)
- APCu - APC User Cache
- OPcache
- PHP extension for interfacing with Redis (with php session.save_handler pre-configurated with tcp://redis-session:6379)
- PHP Intl extension with Icu 59.1
- PHP pdo/pdo_mysql extension
- PHP zip extension
- Xdebug 2.5.5 (on port 9000)
- Composer
- GIT
- ZSH (with oh-my-zsh) shell
Preconfigurated with this arg
ARG XDEBUG_KEY="PHPSTORM"
ARG XDEBUG_REMOTE_IP="10.254.254.254"
ARG XDEBUG_REMOTE_PORT="9000"
Add new alias loopback for localhost
sudo ifconfig lo0 alias 10.254.254.254 netmask 255.255.255.0
Add new alias loopback for localhost
Append to file /etc/network/interfaces
auto lo:0
iface lo:0 inet static
name Docker loopback
address 10.254.254.254
netmask 255.255.255.0
If you use this docker with compose, simply add this service to your docker-compose.yml
redis-session:
image: redis:latest
hostname: redis-session
ports:
- "6379:6379"
And link php container with redis
eg.
php:
image: feries/php7.1:latest
hostname: php
links:
- redis-session
Licensed under a GPL3+ license: http://www.gnu.org/licenses/gpl-3.0.txt