From d99331ad31842772f6a5b039d53d9e3b1e5fd62e Mon Sep 17 00:00:00 2001 From: dengjingren Date: Mon, 6 Apr 2026 16:06:32 +0800 Subject: [PATCH] feat(docker): add nanobot-api service with isolated workspace - Add nanobot-api service (OpenAI-compatible HTTP API on port 8900) - Uses isolated workspace (/root/.nanobot/api-workspace) to avoid session/memory conflicts with nanobot-gateway Co-Authored-By: Claude Opus 4.6 --- docker-compose.yml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2b2c9acd1..139dfe2ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,12 +23,29 @@ services: deploy: resources: limits: - cpus: '1' + cpus: "1" memory: 1G reservations: - cpus: '0.25' + cpus: "0.25" memory: 256M - + + nanobot-api: + container_name: nanobot-api + <<: *common-config + command: + ["serve", "--host", "0.0.0.0", "-w", "/root/.nanobot/api-workspace"] + restart: unless-stopped + ports: + - 8900:8900 + deploy: + resources: + limits: + cpus: "1" + memory: 1G + reservations: + cpus: "0.25" + memory: 256M + nanobot-cli: <<: *common-config profiles: