Skip to content

Commit 113aa0b

Browse files
Daedaeliusclaude
andcommitted
Make CDP_HOST cross-platform compatible
- Add extra_hosts mapping for host.docker.internal on Linux (Docker 20.10+) - Make CDP_HOST and CDP_PORT configurable via environment variables - Default still works on macOS/Windows Docker Desktop 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4a48913 commit 113aa0b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docker/docker-compose.lightweight.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ services:
3232
- HOST=0.0.0.0
3333
- PORT=8082
3434
- API_PORT=8080
35-
- CDP_HOST=host.docker.internal
36-
- CDP_PORT=9222
35+
- CDP_HOST=${CDP_HOST:-host.docker.internal}
36+
- CDP_PORT=${CDP_PORT:-9222}
37+
extra_hosts:
38+
- "host.docker.internal:host-gateway"
3739
restart: unless-stopped
3840
networks:
3941
- devtools-network

0 commit comments

Comments
 (0)