# 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 are supplied at deploy time volumes: - ./catchphrases.txt:/app/catchphrases.txt:ro lavalink: image: ghcr.io/lavalink-devs/lavalink:4 container_name: lavalink restart: unless-stopped environment: - _JAVA_OPTIONS=-Xmx1G volumes: - ./lavalink/application.yml:/opt/Lavalink/application.yml:ro - ./lavalink/plugins/:/opt/Lavalink/plugins/ ports: - "2333:2333"