mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-08 04:03:38 +00:00
Prevents accidental exposure to the public internet. Users who need external access can change to 0.0.0.0:8900:8900 explicitly. Made-with: Cursor
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
x-common-config: &common-config
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ~/.nanobot:/home/nanobot/.nanobot
|
|
cap_drop:
|
|
- ALL
|
|
cap_add:
|
|
- SYS_ADMIN
|
|
security_opt:
|
|
- apparmor=unconfined
|
|
- seccomp=unconfined
|
|
|
|
services:
|
|
nanobot-gateway:
|
|
container_name: nanobot-gateway
|
|
<<: *common-config
|
|
command: ["gateway"]
|
|
restart: unless-stopped
|
|
ports:
|
|
- 18790:18790
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: "1"
|
|
memory: 1G
|
|
reservations:
|
|
cpus: "0.25"
|
|
memory: 256M
|
|
|
|
nanobot-api:
|
|
container_name: nanobot-api
|
|
<<: *common-config
|
|
command:
|
|
["serve", "--host", "0.0.0.0", "-w", "/home/nanobot/.nanobot/api-workspace"]
|
|
restart: unless-stopped
|
|
ports:
|
|
- 127.0.0.1:8900:8900
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: "1"
|
|
memory: 1G
|
|
reservations:
|
|
cpus: "0.25"
|
|
memory: 256M
|
|
|
|
nanobot-cli:
|
|
<<: *common-config
|
|
profiles:
|
|
- cli
|
|
command: ["status"]
|
|
stdin_open: true
|
|
tty: true
|