build(docker): add Dockerfile, Docker Compose config, and update README

This commit is contained in:
2025-04-23 21:55:40 +08:00
parent 47de3823f3
commit 6daf1993d1
3 changed files with 93 additions and 34 deletions

24
docker-compose.yml Normal file
View File

@@ -0,0 +1,24 @@
version: '3.8'
services:
lavalink:
image: jagrosh/lavalink:latest
container_name: lavalink
ports:
- "2333:2333"
environment:
- LAVALINK_PASSWORD=${LAVALINK_PASSWORD}
volumes:
# Optional: mount custom configuration if needed
# - ./application.yml:/opt/Lavalink/application.yml
bot:
build: .
container_name: discord-music-bot
env_file:
- .env
environment:
- LAVALINK_HOST=lavalink
- LAVALINK_PORT=2333
depends_on:
- lavalink