Add compose v5 compatibility, legacy-field warnings, UI error fixes#2094
Open
SohamKukreti wants to merge 1 commit into
Open
Add compose v5 compatibility, legacy-field warnings, UI error fixes#2094SohamKukreti wants to merge 1 commit into
SohamKukreti wants to merge 1 commit into
Conversation
…und error handling - docker-compose.yml: move the PID cap to deploy.resources.limits.pids (Compose v5 rejects pids_limit alongside a limits block; same behavior on v2.x). - entrypoint.sh: explain the loopback-only bind when no CRAWL4AI_API_TOKEN is set and how to fix it. - server.py: warn when the removed output_path (screenshot/pdf) or legacy hooks.code is sent - fields are ignored, never executed; hooks status reads "ignored" and /crawl/stream sends X-Hooks-Warning. Make "/" public so the /playground redirect works; data routes stay gated. - schemas.py: capture legacy hooks.code so it can be reported (never run). - playground: check response.ok on the streaming branch, surface server error details, hint at the token bar on 401. - tests: add deploy/docker/tests/test_legacy_compat.py (13 tests).
SohamKukreti
force-pushed
the
fix/docker-deploy-0.9-gaps
branch
from
July 22, 2026 12:57
614593c to
12d138b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion to the self-hosting docs update; all changes verified against a built 0.9.2 image.
docker-compose.yml:
compose down. Identical behavior on Compose v2.x.entrypoint.sh:
server.py / schemas.py:
static/playground/index.html:
detailmessage instead of a generic "Request failed", and 401s hint at the token bar (distinguishing "no token set" from "token rejected").tests:
Fixes #2091
List of files changed and why
deploy/docker/entrypoint.shdeploy/docker/schemas.pydocker/server.pydocker/static/playground/index.htmldeploy/docker/tests/test_legacy_compat.pydocker-compose.ymlHow Has This Been Tested?
Ran old tests and also created a new test file to test the changes. Manually verified as well.
Checklist: