vi docker-compose.yaml
yaml
version: '3'
services:
solara-music:
image: registry.cn-beijing.aliyuncs.com/wuxingge123/solara-music:latest
container_name: solara-music
restart: unless-stopped
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- SOLARA_PASSWORD=solara123
- SESSION_SECRET=KLmlKDruIBRYjrT5ct7B3xqG25ZF2p59
volumes:
- /data/solara/logs:/app/logs
启动
bash
docker-compose up -d
查看日志
bash
docker logs -f solara-music
> solara-music@1.0.0 start
> node server.js
=================================================
Solara Music Server 启动成功
=================================================
服务端口: 3001
环境变量配置:
- NODE_ENV: production
=================================================
访问地址:
- 直接访问: http://localhost:3001
- 健康检查: http://localhost:3001/api/health
- 调试信息: http://localhost:3001/api/debug
=================================================
访问
