Supported tags and respective Dockerfile links
-
5.6
: Dockerfile -
7.0
: Dockerfile -
7.1
: Dockerfile -
7.2
: Dockerfile -
latest
: see7.2
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