1
0

feat: dockerize OpenFang as vendored tool runtime sidecar (#96)

This commit is contained in:
Alexander Whitestone
2026-02-28 19:27:48 -05:00
committed by GitHub
parent d7d7a5a80a
commit b7c89d1101
18 changed files with 1383 additions and 23 deletions

View File

@@ -91,6 +91,35 @@ services:
condition: service_healthy
restart: unless-stopped
# ── OpenFang — vendored agent runtime sidecar ────────────────────────────────
# Rust binary providing real tool execution (browser, OSINT, forecasting).
# Timmy's coordinator delegates hand execution here via REST API.
openfang:
build:
context: .
dockerfile: docker/Dockerfile.openfang
image: timmy-openfang:latest
container_name: timmy-openfang
profiles:
- openfang
environment:
OLLAMA_URL: "http://ollama:11434"
OPENFANG_DATA_DIR: "/app/data"
volumes:
- openfang-data:/app/data
networks:
- timmy-net
depends_on:
ollama:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
# ── Swarm Worker Pool (Template) ──────────────────────────────────────────
# Scale: docker compose -f docker-compose.microservices.yml up --scale worker=4
worker:
@@ -128,6 +157,8 @@ volumes:
device: "${PWD}/data"
ollama-data:
driver: local
openfang-data:
driver: local
# ── Network ───────────────────────────────────────────────────────────────────
networks: