fix(docker): dev uv cache mounts on macOS (#2036)

This commit is contained in:
Zhou 2026-04-09 15:59:33 +08:00 committed by GitHub
parent 13664e99e7
commit 823f3af98c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -138,8 +138,10 @@ services:
- ../extensions_config.json:/app/extensions_config.json - ../extensions_config.json:/app/extensions_config.json
- ../skills:/app/skills - ../skills:/app/skills
- ../logs:/app/logs - ../logs:/app/logs
# Mount uv cache for faster dependency installation # Use a Docker-managed uv cache volume instead of a host bind mount.
- ~/.cache/uv:/root/.cache/uv # On macOS/Docker Desktop, uv may fail to create symlinks inside shared
# host directories, which causes startup-time `uv sync` to crash.
- gateway-uv-cache:/root/.cache/uv
# DooD: same as gateway — AioSandboxProvider runs inside LangGraph process. # DooD: same as gateway — AioSandboxProvider runs inside LangGraph process.
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# CLI auth directories for auto-auth (Claude Code + Codex CLI) # CLI auth directories for auto-auth (Claude Code + Codex CLI)
@ -195,8 +197,10 @@ services:
- ../extensions_config.json:/app/extensions_config.json - ../extensions_config.json:/app/extensions_config.json
- ../skills:/app/skills - ../skills:/app/skills
- ../logs:/app/logs - ../logs:/app/logs
# Mount uv cache for faster dependency installation # Use a Docker-managed uv cache volume instead of a host bind mount.
- ~/.cache/uv:/root/.cache/uv # On macOS/Docker Desktop, uv may fail to create symlinks inside shared
# host directories, which causes startup-time `uv sync` to crash.
- langgraph-uv-cache:/root/.cache/uv
# DooD: same as gateway — AioSandboxProvider runs inside LangGraph process. # DooD: same as gateway — AioSandboxProvider runs inside LangGraph process.
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# CLI auth directories for auto-auth (Claude Code + Codex CLI) # CLI auth directories for auto-auth (Claude Code + Codex CLI)
@ -233,6 +237,8 @@ volumes:
# image build are not shadowed by the host backend/ directory mount. # image build are not shadowed by the host backend/ directory mount.
gateway-venv: gateway-venv:
langgraph-venv: langgraph-venv:
gateway-uv-cache:
langgraph-uv-cache:
networks: networks:
deer-flow-dev: deer-flow-dev: