adding depends and env variables for lavalink

This commit is contained in:
Mylloon 2021-08-07 11:44:35 +02:00
parent b0ec60e243
commit 4dacde0016

View file

@ -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