<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz" -->

---
title: DebugPHP — Docker support is here. | daily.dev
description: DebugPHP Server now supports Docker with a three-command setup using Dockerfile and Compose config. Setting `dockerized: true` in the client config enables...
canonical: https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: DebugPHP — Docker support is here. | daily.dev
og:description: DebugPHP Server now supports Docker with a three-command setup using Dockerfile and Compose config. Setting `dockerized: true` in the client config enables...
og:url: https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz
og:image: https://api.daily.dev/og/posts/RdvLz6KGz.png
og:image:alt: DebugPHP — Docker support is here.
og:image:width: 1200
og:image:height: 630
og:locale: 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)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz","headline":"DebugPHP — Docker support is here.","text":"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.","url":"https://daily.dev/posts/debugphp-docker-support-is-here--rdvlz6kgz","datePublished":"2026-04-21T14:48:58.392Z","dateModified":"2026-04-21T14:49:17.383Z","author":{"@type":"Person","name":"Leon","url":"https://daily.dev/callmeleon","image":"https://media.daily.dev/image/upload/s--x3PUTuBK--/f_auto/v1771360299/avatars/avatar_QMCOSXL08o8o9m6LVFMdb?_a=BAMAMiiu0","description":"Writing bugs since 2022 | Occasionally they work as features","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":400}},"image":"https://media.daily.dev/image/upload/s--4oyMExWl--/f_auto/v1776762391/posts/DE7kOPiVO?_a=BAMAMiWQ0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":44},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":3}],"comment":[{"@type":"Comment","text":"excelent!","datePublished":"2026-04-22T13:22:09.258Z","url":"https://daily.dev/posts/RdvLz6KGz#c-OyVTSxp22","author":{"@type":"Person","name":"Lucas","url":"https://daily.dev/destor77","image":"https://media.daily.dev/image/upload/s--_pdVR1CD--/f_auto/v1777520753/avatars/avatar_kgQeFdjXpiAO83cKJsLiy?_a=BAMAMiWQ0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6}},{"@type":"Comment","text":"Great tool! I will consider using this on my next project using PHP and Docker.","datePublished":"2026-04-29T13:09:18.744Z","url":"https://daily.dev/posts/RdvLz6KGz#c-meH1NJ7Xf","author":{"@type":"Person","name":"Sherwin Rhey Condez","url":"https://daily.dev/sherwinrheycondez","image":"https://lh3.googleusercontent.com/a/ACg8ocJc1LFEKbh_Lrs9G0zNWASOZJxSubBGL0TXFlRhA3-mMJ07IGZm=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"DebugPHP — Docker support is here."}]}
```

