a4f328e245
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
873 B
YAML
26 lines
873 B
YAML
# 部署: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
|