Files
music-hub/docker-compose.yml
T
2026-10-10 22:14:09 +08:00

26 lines
873 B
YAML
Raw 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
volumes:
- ${MUSIC_DIR:-/vol2/1000/Music}:/music
- ./data:/data
- ${LEGACY_HISTORY_DIR:-/vol1/1000/Apps/163-music-dl}:/legacy:ro