From 4dacde0016d81fc8a57b7805cec3d7bbb6a83164 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 7 Aug 2021 11:44:35 +0200 Subject: [PATCH] adding depends and env variables for lavalink --- docker-compose.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f9c43d5..2d9fd0d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,15 +13,29 @@ services: - PREFIX=yourPrefix volumes: - /here/your/path/:/db - - /here/your/path/:application.yml # Use this if you want to use the cog music.py + depends_on: # Remove theses two lines if you + - lavalink # don't want to use the music.py cog restart: unless-stopped # Use this if you want to use the cog music.py, otherwise delete this part lavalink: image: fredboat/lavalink:master container_name: KassouBot-Lavalink + environment: + - SERVER_PORT=2333 + - SERVER_ADDRESS=0.0.0.0 + - LAVALINK_SERVER_PASSWORD="youshallnotpass" + - LAVALINK_SERVER_WS_PORT=80 + - LAVALINK_SERVER_WS_HOST=0.0.0.0 + - LAVALINK_SERVER_SOURCES_YOUTUBE=true + - LAVALINK_SERVER_SOURCES_BANDCAMP=true + - LAVALINK_SERVER_SOURCES_SOUNDCLOUD=true + - LAVALINK_SERVER_SOURCES_TWITCH=true + - LAVALINK_SERVER_SOURCES_VIMEO=true + - LAVALINK_SERVER_SOURCES_HTTP=true + - LAVALINK_SERVER_SOURCES_LOCAL=false + - LAVALINK_SERVER_BUFFER_DURATION_MS=400 + - LAVALINK_SERVER_YOUTUBE_PLAYLIST_LOAD_LIMIT=600 ports: - 5432:5432 - volumes: - - /here/your/path/:/ # Use the same path as the one for the Lavalink folder in kassoubot service restart: unless-stopped