---
title: "DebugPHP — Docker support is here."
url: https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz
source_url: https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz
type: freeform
source: "PHP Dev"
author: "Leon"
published: 2026-04-21T14:48:58.392Z
updated: 2026-04-21T14:49:17.383Z
tags: ["docker", "php", "docker-compose"]
reading_time: 1
upvotes: 44
comments: 3
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# DebugPHP — Docker support is here.

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@callmeleon](https://daily.dev/callmeleon) · 1 min read · 44 upvotes · 3 comments

## Summary

DebugPHP Server now supports Docker with a three-command setup using Dockerfile and Compose config. Setting `dockerized: true` in the client config enables automatic server discovery by probing `debugphp-server`, `host.docker.internal`, and `127.0.0.1` in sequence, with results cached for an hour to eliminate per-request overhead. No hardcoded IPs or manual host configuration required.

## Content

DebugPHP Server just shipped full Docker support — Dockerfile, Compose config, the whole thing.

Three commands. That's it.

```
git clone https://github.com/CallMeLeon167/debugphp-server.git
cd debugphp-server
docker compose up
```

Then tell your PHP app it's running in Docker:

```
Debug::init('your-session-token', [
    'dockerized' => true,
]);
```

No hardcoded IPs. No manual host config. No guessing.

When `dockerized` is set to `true`, the client automatically probes for the server — trying `debugphp-server`, `host.docker.internal`, and `127.0.0.1` in order. First one that responds wins. Result is cached for an hour, so there's zero overhead on every request.

If you're a PHP dev who's ever spent 30 minutes figuring out how to reach a container from another container — this update is for you.

⭐ [GitHub ](https://github.com/CallMeLeon167/debugphp)· 📖 [Docs ](https://debugphp.dev/docs/)· 🖥️ [Dashboard](https://dashboard.debugphp.dev/)

Drop a star if it saves you one config headache. That's all I need. 🤝

## Community discussion

Top comments from developers on daily.dev.

**@destor77** · 6 upvotes

> excelent!

**@sherwinrheycondez** · 1 upvotes

> Great tool! I will consider using this on my next project using PHP and Docker.

---

Tags: [#docker](https://daily.dev/tags/docker), [#php](https://daily.dev/tags/php), [#docker-compose](https://daily.dev/tags/docker-compose)

[View this post on daily.dev](https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz)
