Skip to content

fix: remove hardcoded host.docker.internal default for DOCLING_SERVE_URL#1186

Open
Jah-yee wants to merge 1 commit intolangflow-ai:mainfrom
Jah-yee:fix/docling-serve-url-default
Open

fix: remove hardcoded host.docker.internal default for DOCLING_SERVE_URL#1186
Jah-yee wants to merge 1 commit intolangflow-ai:mainfrom
Jah-yee:fix/docling-serve-url-default

Conversation

@Jah-yee
Copy link

@Jah-yee Jah-yee commented Mar 18, 2026

Summary

The hardcoded default http://host.docker.internal:5001 prevents the container-aware auto-detection logic in docling.py from running. This causes failures in pure WSL2 Docker environments where host.docker.internal doesn't resolve.

Problem

When running uvx openrag in a pure WSL2 environment with native Docker engine:

  1. docker-compose.yml sets DOCLING_SERVE_URL=http://host.docker.internal:5001 as the default
  2. Pure WSL Docker does not resolve host.docker.internal
  3. The backend's determine_docling_host() function (which handles WSL via gateway IP fallback) is never called because the env var override takes precedence
  4. Result: continuous 503 errors, UI blocked at onboarding

Fix

Now DOCLING_SERVE_URL defaults to empty, allowing determine_docling_host() to auto-detect the correct host based on the environment (Docker Desktop, WSL2, containers, etc.). Users can still override with environment variable.

Fixes #1178

The hardcoded default 'http://host.docker.internal:5001' prevents the
container-aware auto-detection logic in docling.py from running. This
causes failures in pure WSL2 Docker environments where
host.docker.internal doesn't resolve.

Now DOCLING_SERVE_URL defaults to empty, allowing determine_docling_host()
to auto-detect the correct host based on the environment (Docker Desktop,
WSL2, containers, etc.). Users can still override with environment variable.

Fixes langflow-ai#1178
@github-actions github-actions bot added community docker bug 🔴 Something isn't working. labels Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🔴 Something isn't working. community docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant