khenriks / mp3fs

FUSE-based transcoding filesystem from FLAC to MP3
http://khenriks.github.io/mp3fs/
GNU General Public License v3.0
382 stars 46 forks source link

Working in docker #72

Closed Vctrsnts closed 2 years ago

Vctrsnts commented 2 years ago

Hi.

I use the version on docker with this docker-compose.yml on debian bulleyes:

  mp3fs:
    image: khenriks/mp3fs
    container_name: mp3fs
    devices:
      - /dev/fuse
    cap_add:
      - SYS_ADMIN
    security_opt:
      - apparmor:unconfined
    volumes:
      - "my_music_home":/music/input
      - /tmp/mp3:/music/output
    command: -b 160

And I put my music files in "my_music_home". I have anything?

Because if I use the comands that you put on docker section :

$ MUSICDIR="my_music_home" MP3DIR=/tmp/mp3 MP3FS_FLAGS="-b 160" \
  docker-compose up mp3fs

Not have anything.

Where is my error?

Thanks a lot

khenriks commented 2 years ago

Hi, Docker treats volume names with no slash specially. In your docker-compose.yml try putting ./my_music_home instead of my_music_home and see if that helps.

khenriks commented 2 years ago

Closing since there's no response.