This repo contains a Dockerfile for the Discord Musicbot.
It can also be found on Docker Hub.
That Dockerfile mounts an existin directly, and requires you to edit configuration files directly. This Dockerfile allows you to specify configuration values via the enivonrment, which will then be written directly into the configuration file within the container.
The end result is that this container will have no external side-effects. All changes made and packages downloaded will stay within the container and go away when the container is destroyed.
BONUS: The file config/autoplaylist.txt.IN
will support comments. e.g., you can have lines like this:
# Star Trek: The Motion Picture (Score Suite) - YouTube
https://www.youtube.com/watch?v=ULuXSN1Zv1c
# [NEW] Undertale OST - Hopes and Dreams Epic Rock - YouTube
https://www.youtube.com/watch?v=AySnkGYvNIc
# Undertale Remix 🎵 Varien - Heart of the Core (Core Theme) - GameChops - YouTube
https://www.youtube.com/watch?v=NcY0Zyw_oFY
# Waters of Megalovania (ORIGINAL) - YouTube
https://www.youtube.com/watch?v=IQBqSt15Vi0
Yeah I like Undertale. <3
Anyway, the entrypoint.sh
script will script those comments before feeding that file to
Jukebox, so feel free to add comments to your copy of that file as you see fit.
Got any interesting playlists? Send them my way! I may add support for selecting a playlist in a future release. :-)
Yes, this will work in ECS. I wrote up a post explaining how to set this up in ECS.
docker pull dmuth1/musicbot
docker run \
-e TOKEN=token \
-e OWNER_ID=owner_id \
-e TEXT_CHANNEL=text_channel_id \
-e VOICE_CHANNEL=voice_channel_id \
[-e GRANT_TO_ROLES=role_id ] \
musicbot
git clone https://github.com/dmuth/musicbot-docker.git
cd musicbot-docker
cp docker-compose.yml.example docker-compose.yml
vim docker-compose.yml # Edit this file and include the API token, and owner and channel info
docker compose build && docker-compose up
The Musicbot is regularly run on Anthrocon's Discord Server. Feel free to drop on by!
I am @dmuth on Twitter and Facebook. I can also be reached via email: dmuth AT dmuth DOT org. Or just file a bug here.