Files
music-hub/docker-compose.yml

32 lines
1.3 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 部署:git clone 到 /vol1/1000/dockercompose/shengxia 后执行
# docker compose up -d --build
# 路径与端口可在同目录 .env 中覆盖(见 .env.example)
services:
shengxia:
build:
context: .
args:
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmmirror.com}
ALPINE_MIRROR: ${ALPINE_MIRROR:-mirrors.cloud.tencent.com}
image: shengxia:latest
container_name: shengxia
restart: unless-stopped
ports:
- "${PORT:-8066}:8066"
environment:
PUID: ${PUID:-1000}
PGID: ${PGID:-1001}
TZ: Asia/Shanghai
# 首次启动时导入旧版 CLI 的下载历史(只导入一次)
LEGACY_HISTORY_FILE: /legacy/download_history.json
# 出站代理:NAS 直连 Cloudflare(chksz 接口)极慢,非国内域名走局域网代理;
# QQ / 网易云及其 CDN 直连。不需要代理时在 .env 中设 OUTBOUND_PROXY= (留空)
NODE_USE_ENV_PROXY: "1"
HTTP_PROXY: ${OUTBOUND_PROXY-http://192.168.31.8:6152}
HTTPS_PROXY: ${OUTBOUND_PROXY-http://192.168.31.8:6152}
NO_PROXY: localhost,127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,.qq.com,.163.com,.126.net,.126.link,.gtimg.cn,.qlogo.cn,.qpic.cn
volumes:
- ${MUSIC_DIR:-/vol2/1000/Music}:/music
- ./data:/data
- ${LEGACY_HISTORY_DIR:-/vol1/1000/Apps/163-music-dl}:/legacy:ro