navidrome 自建音乐服务+无限谷歌网盘

Tags:

参考:https://lala.im/7660.html

需要建两个域名服务

安装

cd /data 
mkdir navidrome
cat >> docker-compose.yml <<EOF
# 编码
services:
  navidrome:
    image: deluan/navidrome:latest
    environment:
      ND_SCANINTERVAL: 1m
      ND_LOGLEVEL: info
      ND_SESSIONTIMEOUT: 24h
      ND_BASEURL: ""
    ports:
      - "127.0.0.1:9533:4533"
    volumes:
      - "./data:/data"
      - "./music:/music:ro"
    restart: unless-stopped

  miniserve:
    image: svenstaro/miniserve:latest
    depends_on:
      - navidrome
    ports:
      - "9534:8080"
    volumes:
      - "./music:/downloads"
    command: "-r -z -u -q -p 8080 -a YourOwnUsername:YourOwnPassword /downloads"
    restart: unless-stopped
EOF

# 谷歌云盘已经配置在/data/gd_stanford
mkdir -p /data/gd_stanford/_service/navidrome
ln -s /data/gd_stanford/_service/navidrome ./music

# 可能还要修改.user.ini
cd /www/wwwroot/navidrome.nonoidea.com
chattr -i .user.ini
echo ":/data/gd_stanford/_service/navidrome/" >> .user.ini
chattr +i .user.ini

cd /data/navidrome
docker-compose down && docker-compose up -d

建立两个网站+SSL+反代

音乐文件上传

用docker-compose.yml当中自定义的用户名和密码

享受音乐

需要一开始建立新的用户名和密码。

Leave a Reply