- Add agent_workspaces/{ilia,family,wife} skeletons (AGENTS, USER, SOUL, memory)
- Add scripts/init-agent-workspaces.sh to populate ~/.nanobot/workspaces/
- Mount ~/.nanobot/workspaces/{ilia,family,wife} in multi compose as /workspace
- Document Step 0 and layout in DOCKER_MULTI_BOT_GUIDE.md
- Track docs/mcp_and_skills_backlog.md (force-add; docs/ is gitignored)
Made-with: Cursor
80 lines
1.8 KiB
YAML
80 lines
1.8 KiB
YAML
# Multi-bot: nanobot-user1 = @ilia, user2 = @family, user3 = @wife.
|
|
# Each container uses ~/.nanobot/workspaces/<name>/ → /workspace (run scripts/init-agent-workspaces.sh first).
|
|
|
|
services:
|
|
nanobot-user1:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: nanobot-user1
|
|
command: ["gateway"]
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.shared
|
|
- .env.user1
|
|
volumes:
|
|
- ~/.nanobot-user1:/root/.nanobot
|
|
# @ilia — isolated workspace + memory (host: ~/.nanobot/workspaces/ilia)
|
|
- ~/.nanobot/workspaces/ilia:/workspace
|
|
ports:
|
|
- "18790:18790"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.25'
|
|
memory: 256M
|
|
|
|
nanobot-user2:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: nanobot-user2
|
|
command: ["gateway"]
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.shared
|
|
- .env.user2
|
|
volumes:
|
|
- ~/.nanobot-user2:/root/.nanobot
|
|
# @family — isolated workspace + memory
|
|
- ~/.nanobot/workspaces/family:/workspace
|
|
ports:
|
|
- "18791:18790"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.25'
|
|
memory: 256M
|
|
|
|
nanobot-user3:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: nanobot-user3
|
|
command: ["gateway"]
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.shared
|
|
- .env.user3
|
|
volumes:
|
|
- ~/.nanobot-user3:/root/.nanobot
|
|
# @wife — isolated workspace + memory
|
|
- ~/.nanobot/workspaces/wife:/workspace
|
|
ports:
|
|
- "18792:18790"
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 1G
|
|
reservations:
|
|
cpus: '0.25'
|
|
memory: 256M
|
|
|