1. 编写docker-compose.yml
version: "3"
services:
navidrome:
image: deluan/navidrome:latest
user: 0:0 # should be owner of volumes
ports:
- "4533:4533"
restart: always
container_name: navidrome
environment:
# Optional: put your config options customization here. Examples:
ND_SCANSCHEDULE: 1h
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_BASEURL: ""
ND_COVERJPEGQUALITY: 100
ND_DEFAULTLANGUAGE: zh-Hans
ND_DEFAULTTHEME: Light
ND_ENABLEGRAVATAR: true
ND_SPOTIFY_ID: ""
ND_SPOTIFY_SECRET: ""
ND_LASTFM_APIKEY: ""
ND_LASTFM_SECRET: ""
ND_LASTFM_ENABLED: true
ND_LASTFM_LANGUAGE: zh
ND_IMAGECACHESIZE: 100MB
ND_ENABLETRANSCODINGCONFIG: true
ND_UILOGINBACKGROUNDURL: "https://dsm04pap002files.storage.live.com/y4mslOisyhsJhGof6ybLYprnq1LPu5k26N3mpOETxQGApQeT1ua7QnQYwy63f-e6TFRefeYiM2g9ykgq4TKEfDiwIzs2F53lmK0mZ1HEAU9OlGrxB5hbqasg7YPF2G0jF2khmG7owgjv24iD2ldU6kB2y34ReffgtYyt8qYBaI6Yzoo4Mqq1pL03DIFYrKGUcMs?encodeFailures=1&width=1408&height=1056"
volumes:
- "/share/Container/navidrome/data:/data"
- "/share/影音媒体/音乐库/按歌手分类(WAV格式):/music/按歌手分类(WAV格式):ro"
- "/share/影音媒体/音乐库/日常更新/2018年更新合集:/music/日常更新/2018年更新合集:ro"
- "/share/影音媒体/音乐库/日常更新/2019年更新合集:/music/日常更新/2019年更新合集:ro"
- "/share/影音媒体/音乐库/日常更新/2020年更新合集:/music/日常更新/2020年更新合集:ro"
- "/share/影音媒体/音乐库/日常更新/2021年更新合集:/music/日常更新/2021年更新合集:ro"
- "/share/影音媒体/音乐库/日常更新/2022年更新合集:/music/日常更新/2022年更新合集:ro"
- "/share/影音媒体/音乐库/日常更新/2023年更新合集:/music/日常更新/2023年更新合集:ro"
# - "/share/影音媒体/music:/music:ro"
2. docker-compose.yml同目录下执行
docker-compose up -d