From af676faa97bcdea6e5891026251f20a7f733e683 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Sat, 12 Sep 2026 16:27:43 -0500 Subject: [PATCH] fix(opencode): authenticate healthcheck against basic-auth server Password-protected OpenCode returns 401 on /global/health without credentials, which marked the container unhealthy despite a live server. Co-authored-by: Cursor --- docker/docker-compose.prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 6f5aa5d..3c459a8 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -245,7 +245,7 @@ services: healthcheck: test: - CMD-SHELL - - "wget -qO- --timeout=3 http://127.0.0.1:4096/global/health >/dev/null || curl -fsS http://127.0.0.1:4096/global/health >/dev/null || exit 1" + - 'wget -qO- --timeout=3 --user="${OPENCODE_SERVER_USERNAME:-opencode}" --password="${OPENCODE_SERVER_PASSWORD}" http://127.0.0.1:4096/global/health >/dev/null || exit 1' interval: 30s timeout: 10s retries: 3