From b6b151a5000c25de3427362b84f717f65819db38 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 29 Jun 2026 18:07:33 -0400 Subject: [PATCH] docs(agent): docker-compose for the GPU agent compose file (pull the published image, GPU reservation, model-cache volume, .env for the token) so the agent runs with `docker compose up -d` instead of a long docker run. A copy + .env template also placed in ~/Documents/fc-gpu-agent. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Ttrj5P7upUTueSfoJcxEqa --- agent/docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 agent/docker-compose.yml diff --git a/agent/docker-compose.yml b/agent/docker-compose.yml new file mode 100644 index 0000000..9b1adb1 --- /dev/null +++ b/agent/docker-compose.yml @@ -0,0 +1,40 @@ +# FabledCurator GPU agent — desktop run via docker compose. +# +# Usage: +# 1. Generate a token: FC → Settings → Tagging → GPU agent → Generate token. +# 2. Create a .env next to this file: +# FC_URL=http://curator.traefik.internal +# FC_TOKEN= +# # optional: CCIP_MODEL=ccip-caformer_b36-24 (the F1-0.94 variant) +# 3. docker compose up -d (pulls the published image) +# 4. Open http://localhost:8770 → Start. Pause/Stop hands the GPU back. +# docker compose down to stop the container entirely. +# +# Needs the NVIDIA Container Toolkit installed on the host for --gpus. + +services: + fc-gpu-agent: + image: git.fabledsword.com/bvandeusen/fabledcurator-agent:latest + pull_policy: always + ports: + - "8770:8770" + environment: + FC_URL: ${FC_URL:-http://curator.traefik.internal} + FC_TOKEN: ${FC_TOKEN:?set FC_TOKEN in .env (FC → GPU agent → Generate token)} + CCIP_MODEL: ${CCIP_MODEL:-} + DETECTOR_LEVEL: ${DETECTOR_LEVEL:-m} + BATCH_SIZE: ${BATCH_SIZE:-4} + volumes: + # Persist the downloaded ONNX models so restarts are fast. + - fc-agent-models:/models + restart: unless-stopped + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + +volumes: + fc-agent-models: