https://github.com/feries/docker-php7.1-fpm-dev
https://github.com/feries/docker-php7.1-fpm-dev
docker docker-image dockerfile php php-fpm php7 xdebug
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/feries/docker-php7.1-fpm-dev
- Owner: feries
- Created: 2017-08-13T01:51:32.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T11:04:21.000Z (about 6 years ago)
- Last Synced: 2025-02-01T19:12:41.266Z (about 1 year ago)
- Topics: docker, docker-image, dockerfile, php, php-fpm, php7, xdebug
- Language: Dockerfile
- Size: 13.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP-FPM 7.1.12-DEV Docker
PHP-FPM 7.1.12 use **ONLY** for development environment
**Good for the latest stable version of symfony**
[](https://travis-ci.org/feries/docker-php7.1-fpm-dev)
[](https://microbadger.com/images/feries/php7.1 "Get your own image badge on microbadger.com")
[](https://microbadger.com/images/feries/php7.1 "Get your own version badge on microbadger.com")
*Based on **[php:7.1.12-fpm](https://github.com/docker-library/php/blob/master/7.1/jessie/fpm/Dockerfile)***
## Services
- **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
***
### Xdebug
Preconfigurated with this arg
ARG XDEBUG_KEY="PHPSTORM"
ARG XDEBUG_REMOTE_IP="10.254.254.254"
ARG XDEBUG_REMOTE_PORT="9000"
#### Xdebug with macOS host (Docker for Mac)
Add new alias loopback for localhost
sudo ifconfig lo0 alias 10.254.254.254 netmask 255.255.255.0
#### Xdebug with Linux host
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
***
### Redis (session handler)
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