Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker images for easy php development, using php-fpm

License

Notifications You must be signed in to change notification settings

thosewords/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

90 Commits

Repository files navigation

Docker pulls

Yappa PHP FPM Docker Image

Usage

Add the following to your docker-compose.yml file:

php:
 image: yappabe/php
 volumes_from:
 - app
 links:
 - mysql

PHP version

To use a specific PHP version, append the version number to the image name.

Eg: image: yappabe/php:5.6

The following PHP versions are available:

  • PHP 7.0 (jessie stable)
  • PHP 5.6 (jessie stable)
  • PHP 5.4 (wheezy stable)
  • PHP 5.3 (squeeze stable)

Configurations

You can configure the following environment vars, these are the defaults.

ENV ENVIRONMENT dev
ENV PHP_FPM_USER www-data
ENV PHP_FPM_PORT 9000
ENV PHP_ERROR_REPORTING "E_ALL \& ~E_NOTICE \& ~E_STRICT \& ~E_DEPRECATED"

Development and permissions

Run php-fpm process as root user to avoid cli and fpm permission issues. Never ever use this in production!

ENV PHP_FPM_USER root

About

Docker images for easy php development, using php-fpm

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%

AltStyle によって変換されたページ (->オリジナル) /