Hi,
I want to add a directory on my computer to populate the music library. This directory is /NFSmusique
(because I mount it on other computers) but it is a classical directory (not mounted).
I tried to do :
celerybeat:
restart: unless-stopped
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
command:
- celery
- --app=funkwhale_api.taskapp
- beat
- --loglevel=INFO
depends_on:
- postgres
- redis
env_file: .env
api:
restart: unless-stopped
image: funkwhale/api:${FUNKWHALE_VERSION:-latest}
depends_on:
- postgres
- redis
env_file: .env
volumes:
- "${MUSIC_DIRECTORY_SERVE_PATH-/srv/funkwhale/data/music}:${MUSIC_DIRECTORY_PATH-/music}:ro"
- "${MEDIA_ROOT}:${MEDIA_ROOT}"
- "${STATIC_ROOT}:${STATIC_ROOT}"
- type: bind
source: /NFSmusique
target: /srv/funkwhale/data/music/NFSmusique
and then, if I do
sudo docker-compose run api funkwhale-manage import_files c4a67f91 "data/music/NFSmusique" --recursive --noinput
I get
Error while reading /app/data/music/NFSmusique: FileNotFoundError
Indeed
docker exec -it 171b0f5e61b6_funkwhale_api_1 bash
allows me to see that files are in /srv/funkwhale/music/NFSmusique
and I dont have a data
directory in /app
.
What did I do wrong?
Thanks