cat docker-compose.yaml <<EOF
version: '3' services:
# xiaomusic xiaomusic: image: my/xiaomusic container_name: xiaomusic restart: unless-stopped ports: - 8090:8090 volumes: - /mnt/music:/app/music - /home/music/setting.json:/app/conf/setting.json environment: XIAOMUSIC_HOSTNAME: '192.168.0.96' XIAOMUSIC_CONF_PATH: '/app/conf'
# mi-gpt migpt: image: my/migpt container_name: migpt restart: unless-stopped volumes: - /home/migpt/.migpt.js:/app/.migpt.js environment: OPENAI_MODEL: 'qwen1.5-0.5b-chat'
OPENAI_BASE_URL: 'https://xxx'
执行 docker-compose up 创建并启动实例
在后台执行该服务可以加上 -d 参数
docker-compose up -d
docker-compose up标签:compose,app,xiaomusic,实例,migpt,music,docker From: https://www.cnblogs.com/yujian2022/p/18351598