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:
parent
19835b2f60
commit
858306e198
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue