Skip to content

Commit df7d64f

Browse files
committed
šŸ“ā€ā˜ ļø Swapped out curl for wget in Gluetun's healthcheck—no bash, no curl, no problem, she still sails true
1 parent 1c97a4c commit df7d64f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ā€Ždocker-compose.ymlā€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ services:
154154

155155
# Define container healthcheck to verify VPN connectivity
156156
healthcheck:
157-
test: ["CMD-SHELL", "curl -s --max-time 10 https://ipinfo.io | grep -q 'ip'"] # Check if public IP is reachable
158-
interval: ${GLUETUN_HEALTHCHECK_INTERVAL} # Run the check at this interval
159-
timeout: ${GLUETUN_HEALTHCHECK_TIMEOUT} # Fail if it exceeds this duration
160-
start_period: ${GLUETUN_HEALTHCHECK_START_PERIOD} # Grace period before checks start
161-
retries: 5 # Mark as unhealthy after 5 failures
157+
test: ["CMD-SHELL", "wget -qO- https://ipinfo.io | grep -q 'ip'"] # Check if public IP is reachable
158+
interval: ${GLUETUN_HEALTHCHECK_INTERVAL} # Run the check at this interval
159+
timeout: ${GLUETUN_HEALTHCHECK_TIMEOUT} # Fail if it exceeds this duration
160+
start_period: ${GLUETUN_HEALTHCHECK_START_PERIOD} # Grace period before checks start
161+
retries: 5 # Mark as unhealthy after 5 failures
162162

163163
# Specify container service dependencies
164164
depends_on:

0 commit comments

Comments
Ā (0)