Skip to content
Snippets Groups Projects
Select Git revision
0 results

php-fpm

  • Clone with SSH
  • Clone with HTTPS
  • David Danier's avatar
    David Danier authored
    81d25063
    History
    Name Last commit Last update
    5.6
    7.0
    7.1
    7.2
    build/ci
    shared
    .gitlab-ci.yml
    README.md

    Supported tags and respective Dockerfile links

    Quick reference

    The images base on the official php(-fpm) images from docker. See docker hub for the official details. We use only the alpine versions.

    The following changes were made:

    • Increased many of the default limits (execution time, upload size, …)
    • Enabled logging on stderr, so errors are visible in the docker logs
    • Installed composer (from composer:latest)
    • Enabled extensions: gd soap gettext mcrypt mysqli pdo_mysql opcache xsl zip intl

    See our apache images ("php") for usage example.

    Additional provided shell scripts/features

    xdebug

    Example Dockerfile:

    FROM docker.team23.de/docker/php-fpm:X.Y
    
    RUN team23-docker-php-install-xdebug.sh && \
        team23-docker-php-enable-xdebug.sh

    Alternatively only install xdebug and enable it using environment variable

    Dockerfile:

    FROM docker.team23.de/docker/php-fpm:X.Y
    
    RUN team23-docker-php-install-xdebug.sh

    docker-compose.yml:

    version: "3.0"
    
    services:
      php:
        build: .
        environment:
          TEAM23_DOCKER_PHP_ENABLE_XDEBUG: 1
          # You may even install xdebug using environment variables, then no
          # Dockerfile is needed (but container startup time suffers seriously):
          # TEAM23_DOCKER_PHP_INSTALL_XDEBUG: 1

    Of just start the container using docker … -e TEAM23_DOCKER_PHP_ENABLE_XDEBUG=1 … in your shell.

    Redis

    Example Dockerfile:

    FROM docker.team23.de/docker/php-fpm:X.Y
    
    RUN team23-docker-php-install-redis.sh && \
        team23-docker-php-enable-redis.sh

    Solr

    Example Dockerfile:

    FROM docker.team23.de/docker/php-fpm:X.Y
    
    RUN team23-docker-php-install-solr.sh && \
        team23-docker-php-enable-solr.sh