mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-05 09:15:58 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
parent
ebf29d87ae
commit
d99331ad31
@ -23,10 +23,27 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '1'
|
cpus: "1"
|
||||||
memory: 1G
|
memory: 1G
|
||||||
reservations:
|
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
|
memory: 256M
|
||||||
|
|
||||||
nanobot-cli:
|
nanobot-cli:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user