added ci/cd
This commit is contained in:
+18
-5
@@ -1,10 +1,23 @@
|
||||
# Runs a Lavalink v4 server for the bot to connect to.
|
||||
# docker compose up -d # start in background
|
||||
# docker compose logs -f # watch logs
|
||||
# docker compose down # stop
|
||||
# Runs the bot together with a Lavalink v4 server for music playback.
|
||||
# docker compose up -d --build # build the bot image locally and start
|
||||
#
|
||||
# The bot connects to ws://localhost:2333 with the password below (see .env).
|
||||
services:
|
||||
bot:
|
||||
image: ${BOT_IMAGE:-botinator:latest}
|
||||
build: .
|
||||
container_name: botinator
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- lavalink
|
||||
# BOT_TOKEN, GUILD_ID, LAVALINK_PASSWORD, ... come from .env.
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
- LAVALINK_URI=ws://lavalink:2333
|
||||
# Catchphrases are supplied at deploy time
|
||||
volumes:
|
||||
- ./catchphrases.txt:/app/catchphrases.txt:ro
|
||||
|
||||
lavalink:
|
||||
image: ghcr.io/lavalink-devs/lavalink:4
|
||||
container_name: lavalink
|
||||
|
||||
Reference in New Issue
Block a user