mirror of
https://github.com/yashshah9/agentbox.git
synced 2026-11-18 18:03:44 +00:00
Context: - Docker sandbox backend needed docker-cli in the image and a same-path TMPDIR bind-mount for nested docker run -v on Docker Desktop. - Without a compose path, agentforge and ops users stayed on subprocess. Test Plan: - AGENTBOX_HOST_TMP=$PWD/.agentbox-work docker compose -f compose.yaml \ -f compose.docker-sandbox.yaml up --build -d agentbox - curl /health shows backend=docker; POST /v1/run with network_isolated=true Additional Notes: - Default compose remains subprocess for simple CI/unit use.
15 lines
550 B
YAML
15 lines
550 B
YAML
# Use: mkdir -p "$AGENTBOX_HOST_TMP" && \
|
|
# AGENTBOX_HOST_TMP="$(pwd)/.agentbox-work" \
|
|
# docker compose -f compose.yaml -f compose.docker-sandbox.yaml up --build agentbox
|
|
services:
|
|
agentbox:
|
|
build:
|
|
target: runtime-docker
|
|
environment:
|
|
AGENTBOX_SANDBOX_BACKEND: docker
|
|
TMPDIR: ${AGENTBOX_HOST_TMP:?Set AGENTBOX_HOST_TMP to an absolute host path}
|
|
AGENTBOX_SNAPSHOT_DIR: ${AGENTBOX_HOST_TMP}/snapshots
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ${AGENTBOX_HOST_TMP}:${AGENTBOX_HOST_TMP}
|