SkillAgentSearch skills...

Php

Generic PHP docker container images

Install / Use

/learn @wodby/Php
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PHP Docker Container Images

Build Status Docker Pulls Docker Stars

Table of Contents

Docker Images

❗For better reliability we release images with stability tags (wodby/php:8-X.X.X) which correspond to git tags. We strongly recommend using images only with stability tags.

About images:

Supported tags and respective Dockerfile links:

  • 8.5, 8, latest [(8/Dockerfile)]
  • 8.4 [(8/Dockerfile)]
  • 8.3 [(8/Dockerfile)]
  • 8.2 [(8/Dockerfile)]
  • 8.5-dev, 8-dev, dev [(8/Dockerfile)]
  • 8.4-dev [(8/Dockerfile)]
  • 8.3-dev [(8/Dockerfile)]
  • 8.2-dev [(8/Dockerfile)]
  • 8.5-dev-macos, 8-dev-macos, dev-macos [(8/Dockerfile)]
  • 8.4-dev-macos [(8/Dockerfile)]
  • 8.3-dev-macos [(8/Dockerfile)]
  • 8.2-dev-macos [(8/Dockerfile)]

-dev

Images with -dev tag have a few differences:

  • sudo allowed for all commands for wodby user
  • PHP source code available under /usr/src/php.tar.xz
  • PHP_FPM_CLEAR_ENV is set to no by default
  • Additional packages installed: tig, tmux, yarn and npm

-dev-macos

Same as -dev but the default user/group wodby has uid/gid 501/20 to match the macOS default user/group ids.

Supported architectures

All images built for linux/amd64 and linux/arm64

Environment Variables

PHP and PHP-FPM configuration

The default configuration is not recommended for use for production environment:

| Variable | 8.5 | 8.4 | 8.3 | 8.2 | |---------------------------------------------|------------------------|------------------------|------------------------|------------------------| | [PHP_ALLOW_URL_FOPEN] | On | On | On | On | | [PHP_APCU_ENABLE_CLI] | 0 | 0 | 0 | 0 | | [PHP_APCU_ENABLED] | 1 | 1 | 1 | 1 | | [PHP_APCU_ENTRIES_HINT] | 4096 | 4096 | 4096 | 4096 | | [PHP_APCU_COREDUMP_UNMAP] | 0 | 0 | 0 | 0 | | [PHP_APCU_GC_TTL] | 3600 | 3600 | 3600 | 3600 | | [PHP_APCU_PRELOAD_PATH] | NULL | NULL | NULL | NULL | | [PHP_APCU_SERIALIZER] | | | | | | [PHP_APCU_SHM_SEGMENTS] | 1 | 1 | 1 | 1 | | [PHP_APCU_SHM_SIZE] | 128M | 128M | 128M | 128M | | [PHP_APCU_SLAM_DEFENSE] | 1 | 1 | 1 | 1 | | [PHP_APCU_TTL] | 0 | 0 | 0 | 0 | | [PHP_APCU_USE_REQUEST_TIME] | 1 | 1 | 1 | 1 | | [PHP_ASSERT_ACTIVE] | - | - | - | On | | [PHP_AUTO_PREPEND_FILE] | | | | | | [PHP_AUTO_APPEND_FILE] | | | | | | PHP_BROTLI_OUTPUT_COMPRESSION | 0 | 0 | 0 | 0 | | PHP_BROTLI_OUTPUT_COMPRESSION_LEVEL | -1 | -1 | -1 | -1 | | PHP_CLI_MEMORY_LIMIT | -1 | -1 | -1 | -1 | | [PHP_DATE_TIMEZONE] | UTC | UTC | UTC | UTC | | [PHP_DEFAULT_SOCKET_TIMEOUT] | 60 | 60 | 60 | 60 | | [PHP_DISABLE_FUNCTIONS] | | | | | | [PHP_DISABLE_CLASSES] | | | | | | [PHP_DISPLAY_STARTUP_ERRORS] | On | On | On | On | | [PHP_ERROR_REPORTING] | E_ALL | E_ALL | E_ALL | E_ALL | | [PHP_EXPOSE] | Off | Off | Off | Off | | PHP_EXTENSIONS_DISABLE | xdebug,xhprof,spx | xdebug,xhprof,spx | xdebug,xhprof,spx | xdebug,xhprof,spx | | [PHP_FPM_CLEAR_ENV] | yes | yes | yes | yes | | PHP_FPM_ENV_VARS | | | | | | [PHP_FPM_LOG_LEVEL] | notice | notice | notice | notice | | [PHP_FPM_PM] | dynamic | dynamic | dynamic | dynamic | | [PHP_FPM_PM_MAX_CHILDREN] | 8 | 8 | 8 | 8 | | [PHP_FPM_PM_MAX_REQUESTS] | 500 | 500 | 500 | 500 | | [PHP_FPM_PM_MAX_SPARE_SERVERS] | 3 | 3 | 3 | 3 | | [PHP_FPM_PM_MIN_SPARE_SERVERS] | 1 | 1 | 1 | 1 | | [PHP_FPM_PM_STATUS_PATH] | | | | | | [PHP_FPM_REQUEST_SLOWLOG_TIMEOUT] | | | | | | [PHP_FPM_PM_START_SERVERS] | 2 | 2 | 2 | 2 | | [PHP_FPM_USER] | www-data | www-data | www-data | www-data | | [PHP_FPM_GROUP] | www-data | www-data | www-data | www-data | | [PHP_GRPC_ENABLE_FORK_SUPPORT] | 1 | 1 | 1 | 1 | | [PHP_GRPC_LOG_FILENAME] | /proc/self/fd/2 | /proc/self/fd/2 | /proc/self/fd/2 | /proc/self/fd/2 | | [PHP_GRPC_POLL_STRATEGY] | epoll1 | epoll1 | epoll1 | epoll1 | | [PHP_GRPC_TRACE] | | | | | | [PHP_GRPC_VERBOSITY] | error | error | error | error | | PHP_IGBINARY_COMPACT_STRINGS | On | On | On | On | | [PHP_LOG_ERRORS] | On | On

View on GitHub
GitHub Stars170
CategoryDevelopment
Updated10d ago
Forks105

Languages

Go Template

Security Score

100/100

Audited on Mar 25, 2026

No findings