Public | Automated Build

Last pushed: a month ago
Short Description
The custom image for PHP 7.0 based on Debian 8
Full Description

PHP 7.0

This image contains:

  • php, php-fmp, php-cli version 7.0
  • monit service
  • cron service

How to extend this image

If you would like to do additional initialization in an image derived
from this one, add one or more *.sh scripts under /entrypoint-init.d
(creating the directory if necessary).

This files will be executed before starting services.

Alternative you can path you scripts into container with volumes.

Example:

version: '2'
services:
  php:
    image: scorg/php7.0
    volumes:
      - scripts
    tty: true

Use PHP xDebug for development

If you need xDebug for local development you can enable it by specify
environment variable PHP_XDEBUG_ENABLE:

version: '2'
services:
  php:
    image: scorg/php7.0
    environment:
      PHP_XDEBUG_ENABLE: 1

Additional configuration

Also you can configure xDebug with this environment variables:

environment variable php.ini default value
PHP_XDEBUG_REMOTE_HOST xdebug.remote_host 127.0.0.1
PHP_XDEBUG_REMOTE_AUTOSTART xdebug.remote_autostart 1
PHP_XDEBUG_IDEKEY xdebug.idekey PHPSTORM
PHP_XDEBUG_PROFILER_ENABLE xdebug.profiler_enable 0
Docker Pull Command
Owner
scorg
Source Repository

Comments (0)