swingmx / swingmusic

Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music.
https://swingmx.com
MIT License
804 stars 44 forks source link

Options to docker-compose.yml #202

Closed VlaK0r closed 5 months ago

VlaK0r commented 7 months ago

Hello! Thank you for your hard work!

Please tell me how to add these settings to docker-compose.yml?

image

cwilvx commented 7 months ago

Hi @VlaK0r

Thanks for trying Swing Music. Can you try this:

services:
  swingmusic:
    image: swingmusic
    container_name: swingmusic
    command: ["your-binary", "--flag1", "value1", "--flag2", "value2"]
    volumes:
      - /path/to/music:/music
      - /path/to/config:/config
    ports:
      - "1970:1970"
    restart: unless-stopped
+   command: ["poetry", "run", "python", "manage.py", "--host", "0.0.0.0", "--config", "/config", "<others here>"]

Replace <others here> with your desired flags.

The command compose field is used to override the startup script of the Docker container. Let me know whether it works.

Thanks.

VlaK0r commented 7 months ago

I made changes, I started it, there are no errors.

cwilvx commented 5 months ago

Hi @VlaK0r

Looks like this issue was resolved. I'll be closing it now.

If you still have the same issue, please leave a comment.

Thank you.