docker icon indicating copy to clipboard operation
docker copied to clipboard

What is the best way to use server's music files?

Open nemonein opened this issue 1 year ago • 7 comments

Hi. My music files are stored on /storage/Music directory. Do I have to bind this to docker volume?

    volumes:
      - /storage/Music:/music
      - covers:/var/www/html/public/img/covers
      - search_index:/var/www/html/storage/search-indexes

I tried this, but I get ERROR on koel:doctor.

  Media storage setup (local) ........................................................ ERROR

nemonein avatar Dec 05 '24 14:12 nemonein

- /storage/Music:/music

Have you tried using the full path to the Music folder?

hg2s avatar May 30 '25 21:05 hg2s

- /storage/Music:/music

Have you tried using the full path to the Music folder?

What do you mean? It seems like its the full path here?

oxodao avatar Jun 15 '25 14:06 oxodao

What do you mean? It seems like its the full path here?

Sorry, my mistake. Seems to me too that it should work. Is there an issue with file/folder permissions?

hg2s avatar Jun 16 '25 04:06 hg2s

I had a really bad time trying to set it up myself for some reason.

OP need to try setting up the mountpoints like this: https://github.com/koel/docker/issues/189#issuecomment-2289956044

For some reason that's what fixed my permission issues

oxodao avatar Jun 19 '25 11:06 oxodao

I had a really bad time trying to set it up myself for some reason.

OP need to try setting up the mountpoints like this: #189 (comment)

For some reason that's what fixed my permission issues

Sorry but I don't see why you needed to change. Do you have any reason why?

A comment on the post says:

It looks like a permission issue. Adding +w on directories solved this for me.

Did you make this change?

hg2s avatar Jun 19 '25 17:06 hg2s

No, I set up the volumes outside of the service section with o:bind and type: none and it did fix my permissions issue. No clue exactly why that is as I never had to do this for any other app

oxodao avatar Jun 20 '25 11:06 oxodao

No, I set up the volumes outside of the service section with o:bind and type: none and it did fix my permissions issue. No clue exactly why that is as I never had to do this for any other app

Yes, seems very odd to me too. I guess Koel has its secrets.

hg2s avatar Jun 20 '25 17:06 hg2s