Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi authored Sep 8, 2024
1 parent 9c4d757 commit ad82d13
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ services:
ports:
- 8090:8090
volumes:
- ./music:/app/music
- ./conf:/app/conf
- /xiaomusic/music:/app/music
- /xiaomusic/conf:/app/conf
```
对应的 docker 启动命令如下:
```yaml
docker run -p 8090:8090 \
-v ./music:/app/music \
-v ./conf:/app/conf \
-v /xiaomusic/music:/app/music \
-v /xiaomusic/conf:/app/conf \
hanxi/xiaomusic
```

其中 conf 目录为配置文件存放目录,music 目录为音乐存放目录,建议分开配置为不同的目录。
其中 conf 目录为配置文件存放目录,music 目录为音乐存放目录,建议分开配置为不同的目录。上面配置的 /xiaomusic/music 和 /xiaomusic/conf 是 docker 主机里的 /xiaomusic 目录下的,可以修改为其他目录。

启动成功后,在 web 页面可以配置其他参数,带有 `*` 号的配置是必须要配置的,其他的用不上时不用修改。初次配置时需要在页面上输入小米账号和密码保存后才能获取到设备列表。

Expand All @@ -60,8 +60,8 @@ services:
ports:
- 5678:5678
volumes:
- ./music:/app/music
- ./conf:/app/conf
- /xiaomusic/music:/app/music
- /xiaomusic/conf:/app/conf
environment:
XIAOMUSIC_PORT: 5678
```
Expand Down

0 comments on commit ad82d13

Please sign in to comment.