fix(docker-compose): Update healthcheck for Lavalink service to use correct endpoint and reduce interval

This commit is contained in:
Jose Daniel G. Percy 2025-04-24 01:27:17 +08:00
parent 74cac2bfbb
commit 30b5b23868

View File

@ -13,11 +13,12 @@ services:
- ./application.yml:/opt/Lavalink/application.yml:ro,Z - ./application.yml:/opt/Lavalink/application.yml:ro,Z
# Add healthcheck to verify Lavalink is ready # Add healthcheck to verify Lavalink is ready
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:2333/v4/info"] test: >
interval: 10s curl -H "Authorization: ${LAVALINK_PASSWORD}" -f http://localhost:2333/versionkk
interval: 5s
timeout: 5s timeout: 5s
retries: 5 retries: 3
start_period: 15s # Give Lavalink time to start up initially start_period: 5s # Give Lavalink time to start up initially
bot: bot:
build: . build: .