pldubouilh / gossa

🎶 a fast and simple multimedia fileserver
MIT License
913 stars 72 forks source link

Symlinks Don't Work #121

Closed jtitley closed 1 month ago

jtitley commented 1 month ago

I'm trying to get directory symlinks set up so I can host multiple directories. But it doesn't seem to work. I'm assuming the links need to be from the context of the container, but no matter what i do, the symlink directories just don't show up.

Snippet from Docker Compose: volumes:

My directory:

ln -s /video /home/josh/gossa/video ln -s /drive /home/josh/gossa/drive

pldubouilh commented 1 month ago

Odd - It may also be a limitation with how it's mounted by docker-compose.

[edit] Just ran a quick test with docker-compose, symlinks are not supported apparently. Alternatively, you can mount your volumes directly within the main mountpoint folder (see example below), only limitation is that the main folder shouldn't be read-only. Gossa can be operated read-only though (like you set in your entrypoint cmd).

    volumes:
      - ~/toshare:/toshare
      - ~/a:/toshare/a:ro
      - ~/b:/toshare/b:ro
jtitley commented 1 month ago

What a great tip. I didn't even think of mounting volumes in the share directory. Thanks for the quick reply, it works great!