From 9434cf321639e95d59ab077762ea1d12d3e6bda0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Thu, 27 Jun 2024 14:17:00 +0800 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index ea518f6..7635ab5 100644 --- a/README.md +++ b/README.md @@ -179,6 +179,26 @@ services: XIAOMUSIC_HOSTNAME: '192.168.2.5' ``` +setting.json 文件不存到 music 可以这样写,会把 setting.json 文件放到容器的 /app/conf 目录且映射到本地的 ./conf 目录: + +```yaml +services: + xiaomusic: + image: hanxi/xiaomusic + container_name: xiaomusic + restart: unless-stopped + ports: + - 8090:8090 + volumes: + - ./music:/app/music + - ./conf:/app/conf + environment: + MI_USER: '小米账号' + MI_PASS: '小米密码' + XIAOMUSIC_HOSTNAME: 'docker 主机 ip' + XIAOMUSIC_CONF_PATH: '/app/conf' +``` + ## 简易的控制面板