[FR] Docker Support #56
DudeShift
started this conversation in
Feature Requests
Replies: 1 comment
-
I’m by no means an expert with Docker, but I’ll definitely look into this because it seems like a nice feature to have. Thanks for the suggestion! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is your feature request related to a problem? Please describe.
Create a docker image for new users to test/use this music bot via docker containers. I have been looking for a good music bot that has slash commands and react buttons for a "now playing" message from the bot to allow ease of use. Using docker has been a great way to quickly test and deploy discord bots.
"Working" Solution
I pulled the repo, modified the config.yml with bot info, then added a Dockerfile (which was mainly based off of nizewn/Dodong Discord Music Bot):
Created an image using
docker build -t melody .
then created a containerdocker run -d -it --name melody --restart unless-stopped melody
Describe the solution you'd like
I am not an expert at docker but a better way would be either passing in the bot token as a environment variable or mapping of a working volume for docker.
codetheweb/muse Discord Music Bot has an example of using environment variable.
Bas-Korver/docker-jmusicbot is an example of someone making a docker version of jmusicbot by basically mapping the directory of the config file for the bot with docker-compose.
Again, I am no expert at docker and mainly get by with scraping together information from different github docker projects.
Beta Was this translation helpful? Give feedback.
All reactions