prod: sync production fixes - agent lifecycle, docker fallback, compose hardening

This commit is contained in:
bboxwtf
2026-05-06 19:45:16 +00:00
parent f8e0ca7d5d
commit 633fc48663
16 changed files with 334 additions and 42 deletions

View File

@@ -121,6 +121,13 @@ services:
GATEWAY_REQUEST_TIMEOUT_SECS: "120"
GATEWAY_MAX_TOOL_ITERATIONS: "10"
LOG_LEVEL: "info"
# Agent containers are created on the same bridge network as the DB/gateway
# so they can reach goclaw-db by hostname. Docker Compose prefixes the
# project name, so the network is "goclaw_goclaw-net" on production.
AGENT_NETWORK: "${AGENT_NETWORK:-goclaw_goclaw-net}"
# Explicit DB URL for agent containers using the container name (not the
# short "db" alias which is only resolvable inside the compose network).
AGENT_DB_URL: "${AGENT_DB_URL:-}"
depends_on:
db:
condition: service_healthy