fix(docker): Update environment variables and improve connection handling for Lavalink

This commit is contained in:
2025-04-24 00:05:57 +08:00
parent 0b86b5d891
commit 537a8c6709
4 changed files with 50 additions and 16 deletions

View File

@@ -2,16 +2,22 @@ services:
lavalink:
image: fredboat/lavalink:latest
container_name: lavalink
restart: unless-stopped
networks:
- bot-network
ports:
- "2333:2333"
environment:
- LAVALINK_PASSWORD=${LAVALINK_PASSWORD}
- LAVALINK_SERVER_PASSWORD=${LAVALINK_PASSWORD}
volumes:
- ./application.yml:/opt/Lavalink/application.yml:ro,Z
bot:
build: .
container_name: discord-music-bot
restart: unless-stopped
networks:
- bot-network
env_file:
- .env
environment:
@@ -20,3 +26,7 @@ services:
- LAVALINK_PASSWORD=${LAVALINK_PASSWORD}
depends_on:
- lavalink
networks:
bot-network:
driver: bridge