Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议配置文件目录和下载目录分开 #74

Closed
huluohu opened this issue Jun 21, 2024 · 3 comments
Closed

建议配置文件目录和下载目录分开 #74

huluohu opened this issue Jun 21, 2024 · 3 comments
Labels
新功能 可能会实现的功能

Comments

@huluohu
Copy link

huluohu commented Jun 21, 2024

开发者你好,一般来说,实用NAS,音乐是单独放在一个媒体库的,目前setting.json和下载音乐是放在同一个目录的,混在一起不便于管理,建议分成两个目录。

当然,实用上没啥影响。

@hanxi
Copy link
Owner

hanxi commented Jun 21, 2024

建议不错,当初这样实现是为了少映射一个目录进docker里做持久化,后面考虑加个可以配置目录。

@hanxi hanxi added the 新功能 可能会实现的功能 label Jun 21, 2024
@hanxi hanxi closed this as completed in 50da8a0 Jun 23, 2024
@hanxi
Copy link
Owner

hanxi commented Jun 29, 2024

配置示例:

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_CONF_PATH: /app/conf
      XIAOMUSIC_HOSTNAME: 'docker 主机 ip'

这样就会把 setting.json 文件保存到容器中的 /app/conf 目录和 docker 主机的 ./conf 目录。

@huluohu
Copy link
Author

huluohu commented Jun 29, 2024

666,太高效了,非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能 可能会实现的功能
Projects
None yet
Development

No branches or pull requests

2 participants