php8-nginx-xdebug

Php8 Nginx Xdebug Docker Image

这是一个用于PHP8.0开发和生产环境的Docker镜像,集成nginx、Xdebug等工具,支持Alpine、Debian及CLI变体,满足不同开发调试和部署需求。

2 次收藏下载次数: 0状态:社区镜像维护者:chrisb9仓库类型:镜像最近更新:
下载命令
点击查看

PHP 8.0 for development and production

Note:
This image is transitioning from a simple dev image to a more configurable and extensible image
Therefore it is currently being pushed into two different docker repositories:
(old:) https://hub.docker.com/r/chrisb9/php8-nginx-xdebug
(new:) https://hub.docker.com/r/chrisb9/php8

The Images:

There are three image configurations in two different types:

Image TypeImage VariantWith nginx
Alpinedev and prodyes
Debiandev and prodyes
CLIdev and prodno

current features

  • nginx based image: nginx with brotli and http2 enabled
  • dev image: php 8.0 ✨ (with xdebug, opcache, ffi, and jit enabled by default)
  • prod image: php 8.0 ✨ (with opcache, and jit enabled by default)
  • dev image: xdebug 3.0 (set to profile, debug and develop-mode)
  • dev image: pcov
  • composer v2.0 (composer 1.0 has been removed)
  • bash (with auto-completion extension and colored)
  • webp and image-optimizers
  • mariadb support
  • cli image: no fpm and no nginx preinstalled - this is your smaller variant, not based on alpine (yet)

planned:

  • mongodb support
  • apache-based image
  • easier extension installation
  • tideways profiler with perf-tools enabled

This repository does only provide Dockerfiles for php 8.0 and upwards.
If there is enough traction, I might add PHP 7.4 too (or feel free to add it)

docker-socket

If docker socket has been mounted as a volume into the container,
then each startup checks the availability of the docker command and if not available installs it.

Note: This is currently only available in alpine images: WIP

xdebug settings:

Some xdebug settings have been preconfigured, such as:

  • xdebug.mode=profile,develop,coverage
  • xdebug.client_port=9003
  • xdebug.discover_client_host=1
  • xdebug.idekey=PHPSTORM

Through the environment-variable XDEBUG_HOST the client_host can be changed on login

xdebug tools:

  • xdebug-enable enabled xdebug and restarts php
  • xdebug-disable disables xdebug and restarts php

testing this dockerfile:

just run git clone && docker-compose up -d
then open up your browser and go to this container.

in the app-folder are two files index.php and Test.php. They are meant as a playground to test the newest features of php 8.0

Contributing

todo...

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 php8-nginx-xdebug 镜像标签

docker pull docker.xuanyuan.run/chrisb9/php8-nginx-xdebug:<标签>

DockerHub 原生拉取命令

docker pull chrisb9/php8-nginx-xdebug:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告