galnir / Master-Bot

A Discord music bot and dashboard with slash commands, playlist support, Spotify, music quiz, saved playlists, lyrics, gifs and more
MIT License
464 stars 373 forks source link

Having trouble running the bot on Windows 10 #751

Closed ghost closed 1 year ago

ghost commented 2 years ago

docker compose doesn't work in debian stretch on WSL in Windows 10.

compose isn't a subcommand of docker and --env-file isn't even an option in docker-compose on debian 9 for WSL.

galnir commented 2 years ago

I'm pretty sure you need to install docker compose in addition, that's at least how I did it once

edit: changed source

Bacon-Fixation commented 2 years ago

i updated the commands from that url, as it installs v1 legacy, should technically work but i only did testing with v2 of compose plugin

(tested the following inside deb 9 stretch Docker container)

sudo curl -L https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Much Love -Bacon

galnir commented 1 year ago

@PhantomNimbi Did you manage to get it working?

ghost commented 1 year ago

@PhantomNimbi Did you manage to get it working?

Yolo, sorry for the late reply haven't been able to access my PC in a while. Bout to test it now.

--- Edit

Hmmm running debian inside docker gives me debian 10 instead of debian 9... somehow I feel i should have run it in a docker image from the start lmfao...

ghost commented 1 year ago

Got it to run in a Debian 10 Docker image without using docker-compose.

However, the only thing I can't access this way is the Dashboard. Although the ports are definitely open my browser is unable to find the webpage when trying to access it.

image

image

image

ghost commented 1 year ago

and i got it to work. Had to swap a few things over. Instead of hosting a Debian Docker container for it I simply ran redis and postgres in their own docker containers and used those for the bot.

Now both the bot and the dashboard are working perfectly =)