mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
9ec27835cf
- Add -console to Dockerfile CMD so launcher outputs logs to stdout, making docker logs work as expected - Remove 127.0.0.1 bind from ports to allow public network access - Add commented PICOCLAW_LAUNCHER_TOKEN env var example Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
56 lines
2.4 KiB
YAML
56 lines
2.4 KiB
YAML
services:
|
|
# ─────────────────────────────────────────────
|
|
# PicoClaw Agent (one-shot query)
|
|
# docker compose -f docker/docker-compose.yml run --rm picoclaw-agent -m "Hello"
|
|
# ─────────────────────────────────────────────
|
|
picoclaw-agent:
|
|
image: docker.io/sipeed/picoclaw:latest
|
|
container_name: picoclaw-agent
|
|
profiles:
|
|
- agent
|
|
# Uncomment to access host network; leave commented unless needed.
|
|
#extra_hosts:
|
|
# - "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./data:/root/.picoclaw
|
|
entrypoint: ["picoclaw", "agent"]
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
# ─────────────────────────────────────────────
|
|
# PicoClaw Gateway (Long-running Bot)
|
|
# docker compose -f docker/docker-compose.yml --profile gateway up
|
|
# ─────────────────────────────────────────────
|
|
picoclaw-gateway:
|
|
image: docker.io/sipeed/picoclaw:latest
|
|
container_name: picoclaw-gateway
|
|
restart: unless-stopped
|
|
profiles:
|
|
- gateway
|
|
# Uncomment to access host network; leave commented unless needed.
|
|
#extra_hosts:
|
|
# - "host.docker.internal:host-gateway"
|
|
volumes:
|
|
- ./data:/root/.picoclaw
|
|
|
|
# ─────────────────────────────────────────────
|
|
# PicoClaw Launcher (Web Console + Gateway)
|
|
# docker compose -f docker/docker-compose.yml --profile launcher up
|
|
# ─────────────────────────────────────────────
|
|
picoclaw-launcher:
|
|
image: docker.io/sipeed/picoclaw:launcher
|
|
container_name: picoclaw-launcher
|
|
restart: unless-stopped
|
|
profiles:
|
|
- launcher
|
|
environment:
|
|
- PICOCLAW_GATEWAY_HOST=0.0.0.0
|
|
# Set a fixed dashboard token instead of a random one each restart.
|
|
# If not set, a random token is generated and printed to the console on startup.
|
|
#- PICOCLAW_LAUNCHER_TOKEN=your-secret-token-here
|
|
ports:
|
|
- "18800:18800"
|
|
- "18790:18790"
|
|
volumes:
|
|
- ./data:/root/.picoclaw
|