PHP scripting language - based on official images - optimized for developers
10K+
Dockerfile links8.4-cli, 8-cli, cli, 8.4, 8, latest (8.4/trixie/cli-composer/Dockerfile)8.4-cli-composer2, 8-cli-composer2, cli-composer (8.4/trixie/cli-composer/Dockerfile)8.4-apache, 8-apache, apache (8.4/trixie/apache/Dockerfile)8.4-fpm, 8-fpm, fpm (8.4/trixie/fpm/Dockerfile)8.3-cli, 8.3 (8.3/trixie/cli-composer/Dockerfile)8.3-cli-composer2 (8.3/trixie/cli-composer/Dockerfile)8.3-apache (8.3/trixie/apache/Dockerfile)8.3-fpm (8.3/trixie/fpm/Dockerfile)8.2-cli, 8.2 (8.2/trixie/cli-composer/Dockerfile)8.2-cli-composer2 (8.2/trixie/cli-composer2/Dockerfile)8.2-apache (8.2/trixie/apache/Dockerfile)8.2-fpm (8.2/trixie/fpm/Dockerfile)8.1-cli, 8.1 (8.1/trixie/cli-composer/Dockerfile)8.1-cli-composer2 (8.1/trixie/cli-composer2/Dockerfile)8.1-apache (8.1/trixie/apache/Dockerfile)8.1-fpm (8.1/trixie/fpm/Dockerfile)8.0-cli, 8.0 (8.0/bullseye/cli-composer/Dockerfile)8.0-cli-composer2 (8.0/bullseye/cli-composer2/Dockerfile)8.0-apache (8.0/bullseye/apache/Dockerfile)8.0-fpm (8.0/bullseye/fpm/Dockerfile)7.4-cli, 7-cli, 7.4, 7 (7.4/bullseye/cli-composer/Dockerfile)7.4-cli-composer2 (7.4/bullseye/cli-composer2/Dockerfile)7.4-apache, 7-apache (7.4/bullseye/apache/Dockerfile)7.4-fpm, 7-fpm (7.4/bullseye/fpm/Dockerfile)7.3-cli, 7.3, (7.3/trixie/cli-composer/Dockerfile)7.3-cli-composer2 (7.3/trixie/cli-composer2/Dockerfile)7.3-apache, (7.3/trixie/apache/Dockerfile)7.3-fpm, (7.3/trixie/fpm/Dockerfile)7.2-cli, 7.2 (7.2/trixie/cli-composer/Dockerfile)7.2-cli-composer2 (7.2/trixie/cli-composer2/Dockerfile)7.2-apache (7.2/trixie/apache/Dockerfile)7.2-fpm (7.2/trixie/fpm/Dockerfile)Where to get help: the Riptide Docker Images Github Repository
Where to file issues: https://github.com/theCapypara/riptide-docker-images/issues
Maintained by: the Riptide Community
Source of this description: README in riptide-docker-images repo (history)
php images based on the official PHP images.
These images work like their official counterpart, but:
composercomposer2cli-composer2 images instead only contain Composer 2, linked as both composer and composer2.Xdebug is not loaded by default for performance reasons. If you want
to enable Xdebug, add the following lines to the file /usr/local/etc/php/conf.d/xdebug.ini via a new image or mount:
zend_extension=xdebug.so
xdebug.remote_enable=on
xdebug.remote_autostart=off
This image is meant for developers using PHP. If you are missing any extensions or tools, be sure to open a pull request.
See the description of the official PHP images.
The directory used for app sources is /src, not /usr/src!
This image is meant to be used with Riptide. Using it without Riptide is probably possible, but not supported.
A simple PHP app that uses the apache variant to run an Apache web-server:
app:
name: php-demo
services:
php_demo:
image: riptidepy/php:7.3-apache
environment:
APACHE_RUN_USER: '#{{ os_user() }}'
APACHE_RUN_GROUP: '#{{ os_group() }}'
port: 80
run_as_current_user: false
roles:
- main
- src
For all image variants, expect for apache:
run_as_current_user: true for services (this is the default).For the apache image variant:
run_as_current_user: false for services.
To run the image with the user controlling riptide, instead of the image user, provide the APACHE_RUN_USER and APACHE_RUN_GROUP environment variables,
as shown in the example above.See the description of the official PHP images.
| Name | Required | Example Value(s) | Description |
|---|---|---|---|
| APACHE_RUN_USER | see desc. | #1000 / #{{ os_user() }} (Riptide) | (apache only) ID of the user that Apache should switch to |
| APACHE_RUN_GROUP | see desc. | #1000 / #{{ os_group() }} (Riptide) | (apache only) ID of the group that the main command should switch to |
| XDEBUG_CONFIG | no | client_host={{ host_address() }} | Xdebug configuration |
| XDEBUG_CONFIG | no | serverName=riptide-{{ name }}' | PhpStorm path mapping key |
More environment variables may be provided by PHP, PHP-FPM, Apache or the PHP extensions.
See the description of the official PHP images. Only variants for FPM, CLI and Apache are provided. Only variants based on Debian trixie are provided.
Content type
Image
Digest
sha256:fae7312ad…
Size
272.3 MB
Last updated
3 months ago
docker pull riptidepy/php