From 30b5b238684e9d73138ab2f59bc62c2bd69c9187 Mon Sep 17 00:00:00 2001 From: aki Date: Thu, 24 Apr 2025 01:27:17 +0800 Subject: [PATCH] fix(docker-compose): Update healthcheck for Lavalink service to use correct endpoint and reduce interval --- docker-compose.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4104c22..12c48ad 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,11 +13,12 @@ services: - ./application.yml:/opt/Lavalink/application.yml:ro,Z # Add healthcheck to verify Lavalink is ready healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:2333/v4/info"] - interval: 10s + test: > + curl -H "Authorization: ${LAVALINK_PASSWORD}" -f http://localhost:2333/versionkk + interval: 5s timeout: 5s - retries: 5 - start_period: 15s # Give Lavalink time to start up initially + retries: 3 + start_period: 5s # Give Lavalink time to start up initially bot: build: .