I've installed Docker Desktop Personal for Windows 10 and I'm trying to run MusicGPT. I followed some advice from Copilot, but I'm stuck because every time I load the webpage, nothing appears. It seems like MusicGPT inside Docker isn't allowing localhost (127.0.0.1) to communicate with my host machine. I tried changing the host to 0.0.0.0, but that didn't seem to work either.
Copilot mentioned that even though HOST=0.0.0.0 is set correctly, MusicGPT is still binding to 127.0.0.1:8642, which suggests an issue with the app not using the HOST variable properly. I also received an error message saying 'This page isn't working - localhost didn't send any data. ERR_EMPTY_RESPONSE.'
While trying to fix this, I encountered ALSA-related errors that may not be blocking MusicGPT from functioning but could affect audio hardware functionality. I need assistance figuring out why I can't load the MusicGPT page on my browser. I've been tracking logs that show MusicGPT seems to be working inside Docker, but the browser just won't connect. I've also set up Volumes for data persistence because I was having issues with MusicGPT deleting downloads after each restart. Any help would be greatly appreciated!
1 Answer
It sounds like your application is configured to bind to localhost by default. You’ll need to check the app’s configuration settings to change that. I’d recommend diving into the documentation for MusicGPT to see what binding options you can set, or check if there's a specific flag to allow external access. If you're still having trouble, looking for support from developers on GitHub or other forums can be helpful too.
Yeah, I had the same issue when I set up a similar app. Once I changed the binding to 0.0.0.0, everything started working. Just make sure to restart the container after making changes!