From 858306e198ed90f69c3fb8637a0a5b88fd088c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=96=87=E9=94=8B0668000834?= Date: Fri, 13 Mar 2026 09:24:52 +0800 Subject: [PATCH] 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. --- docker/docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index b26cf4199..e847eab6f 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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)