Files
Botinator/docker-compose.yaml
T
ksan 80719eb253
CI/CD / build (push) Successful in 44s
CI/CD / deploy (push) Failing after 21s
fixing some stuff
2026-07-10 00:41:56 +02:00

40 lines
1.2 KiB
YAML

# Runs the bot together with a Lavalink v4 server for music playback.
# docker compose up -d --build # build the bot image locally and start
#
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 and the AR-meter user lists are supplied at deploy time,
# not baked into the image.
volumes:
- ./catchphrases.txt:/app/catchphrases.txt:ro
- ./always100.txt:/app/always100.txt:ro
- ./always90.txt:/app/always90.txt:ro
lavalink:
image: ghcr.io/lavalink-devs/lavalink:4
container_name: lavalink
restart: unless-stopped
env_file:
- .env
environment:
- _JAVA_OPTIONS=-Xmx1G
# Lavalink reads this for lavalink.server.password in application.yml.
# Keep it equal to LAVALINK_PASSWORD (what the bot uses to connect).
- LAVALINK_SERVER_PASSWORD=${LAVALINK_PASSWORD}
volumes:
- ./lavalink/application.yml:/opt/Lavalink/application.yml:ro
- ./lavalink/plugins/:/opt/Lavalink/plugins/
ports:
- "2333:2333"