chore(docker): add healthcheck to gateway service in docker-compose

Add Docker healthcheck configuration to the picoclaw-gateway service
for better container orchestration support. The healthcheck uses wget
to check the /health endpoint every 30 seconds.

This allows container orchestrators like Docker Swarm or Kubernetes
to monitor the gateway service health and restart if needed.
This commit is contained in:
曾文锋0668000834 2026-03-13 09:24:52 +08:00
parent 19835b2f60
commit 858306e198

View file

@ -32,6 +32,12 @@ services:
# - "host.docker.internal:host-gateway"
volumes:
- ./data:/root/.picoclaw
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:18790/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
# ─────────────────────────────────────────────
# PicoClaw Launcher (Web Console + Gateway)