--watch flag doesn't work in docker funkwhale/all-in-one:stable
Hi there, I've noticed in issue whereby funkwhale/all-in-one isn't able to utilise the --watch flag on my music library. I should note that the music is stored on an NFS mount.
Steps to reproduce
- Install funkwhale/all-in-one:stable on docker
docker-compose.yml:
version: "3"
services:
funkwhale:
container_name: funkwhale
restart: unless-stopped
# change version number here when you want to do an upgrade
image: funkwhale/all-in-one:stable
env_file: .env
environment:
# adapt to the pid/gid that own /srv/funkwhale/data
- PUID=1000
- PGID=1000
volumes:
- ./funkwhale:/data
- /mnt/nfs_share/media:/music:ro
ports:
- "5000:80"
- Create library in Funkwhale and import all music using:
export LIBRARY_ID=XXX
docker exec -it funkwhale manage import_files $LIBRARY_ID "/music/" -recursive --noinput --in-place
- After successfully importing music collection, rerun above command, instead with --watch flag.
What happens?
Nothing happens. Docker executes the command, shows a bunch of warnings in yellow, then holds the screen as says "Watching for changes at /music...". It stays there until I press terminate (ctrl-c)
If I make changes to music files in /mnt/nfs_share/media
, they aren't reflected in Funkwhale.
What is expected?
That after executing the import command with --watch flag, docker does some magic, exits and monitors the directory in the background.
Context
Funkwhale version(s) affected: x.y