Giter Site home page Giter Site logo

musicn-container's Introduction

鸣谢

概述

可播放及下载高品质音乐的命令行工具 musicn 的容器版本,支持 amd64/arm64 架构。

image

部署

命令行 + Web 模式

docker run -d --name=musicn --restart=unless-stopped -v ${PWD}/musicn:/data -p 7478:7478 ghcr.io/wy580477/musicn-container:latest msc -q

仅命令行模式 (空闲时几乎不耗内存)

docker run -d --name=musicn --restart=unless-stopped -v ${PWD}/musicn:/data ghcr.io/wy580477/musicn-container:latest tail -f

${PWD}/musicn 为命令行模式下载文件存放目录,默认当前目录下 musicn 文件夹。

执行 musicn 命令:

docker exec -it musicn msc 周杰伦

# 设置 bash 命令别名方便使用,重新登陆 shell 后生效
echo "alias msc='docker exec -it musicn msc'" >> ~/.bashrc

# 查看命令帮助
msc -h

# 指定子目录 test 为下载目录
msc 周杰伦 -p ./test

# 升级版本
docker container rm musicn --force && docker pull ghcr.io/wy580477/musicn-container:latest
# 然后重新执行安装命令

# 容器内升级 (不推荐,万一我以后弃坑不更新 image 版本,可以用这个方法更新)
docker exec -it musicn npm i musicn -g

更多命令用法详见: musicn 文档

访问 http://<宿主机 ip>:7478 可到达 Web 搜索和下载界面。(扫码访问功能不可用, 请手动输入网址访问)

image

Docker-Compose 部署

命令行 + Web 模式

version: '3.4'
services:

  musicn:
    image: ghcr.io/wy580477/musicn-container:latest
    container_name: musicn
    restart: unless-stopped
    entrypoint: ["/sbin/tini", "--", "msc", "-q"]
    ports:
      - "7478:7478"
    volumes:
      - ./musicn:/data

仅命令行模式

version: '3.4'
services:

  musicn:
    image: ghcr.io/wy580477/musicn-container:latest
    container_name: musicn
    restart: unless-stopped
    entrypoint: ["/sbin/tini", "--", "tail", "-f"]
    volumes:
      - ./musicn:/data

musicn-container's People

Contributors

wy580477 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.