Update README.md

This commit is contained in:
涵曦 2024-01-31 09:17:13 +08:00 committed by GitHub
parent 11053ecfa7
commit 1b0a6dd7f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,29 @@ direct connection
docker build -t xiaomusic .
```
### docker compose 示例
```yaml
version: '3'
services:
xiaomusic:
image: hanxi/xiaomusic
container_name: xiaomusic
restart: unless-stopped
ports:
- 8090:8090
volumes:
- ./music:/app/music
environment:
- MI_USER: '小米账号'
- MI_PASS: '小米密码'
- MI_DID: 00000
- MI_HARDWARE: 'L07A'
- XIAOMUSIC_PROXY: 'http://192.168.2.5:8080'
- XIAOMUSIC_HOSTNAME: '192.168.2.5'
```
## 简易的控制面板
浏览器进入 <http://192.168.2.5:8090>