Skip to content

Commit 1640300

Browse files
authored
fix: Unset the proxy when performing the seaweedfs health check (#3959)
1 parent 2d11de5 commit 1640300

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@ services:
274274
volumes:
275275
- "sentry-seaweedfs:/data"
276276
healthcheck:
277-
test: ["CMD", "wget", "-q", "-O-", "http://seaweedfs:8080/healthz", "http://seaweedfs:9333/cluster/healthz", "http://seaweedfs:8333/healthz"]
277+
test: [
278+
"CMD-SHELL",
279+
# Manually override any http_proxy envvar that might be set, because
280+
# this wget does not support no_proxy. See:
281+
# https://github.com/getsentry/self-hosted/issues/1537
282+
"http_proxy='' wget -q -O- http://seaweedfs:8080/healthz http://seaweedfs:9333/cluster/healthz http://seaweedfs:8333/healthz || exit 1",
283+
]
278284
interval: 30s
279285
timeout: 20s
280286
retries: 5

0 commit comments

Comments
 (0)