mirror of
https://github.com/yashshah9/agentbox.git
synced 2026-11-19 02:16:20 +00:00
Self-hosted agent code execution API with FastAPI, subprocess sandbox, Python SDK client, Docker Compose service, and unit tests.
27 lines
600 B
YAML
27 lines
600 B
YAML
services:
|
|
agentbox:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: runtime
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
AGENTBOX_LOG_LEVEL: INFO
|
|
AGENTBOX_DEFAULT_TIMEOUT_SECONDS: 30
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health')"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
test:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: dev
|
|
volumes:
|
|
- .:/app
|
|
working_dir: /app
|
|
command: ["pytest", "tests/", "-v"]
|