From 4f4ff3b02b48dd572cf1fdecdfb6b278fa597cdd Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 23 Jun 2023 01:21:48 +0800 Subject: [PATCH] feat: add penpot.md/navidrome.md --- README.md | 8 ++++++++ docs/navidrome.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ docs/penpot.md | 36 ++++++++++++++++++++++++++++++++++++ docs/portainer.md | 11 +++++++++-- idoc.chapters.yml | 2 ++ 5 files changed, 99 insertions(+), 2 deletions(-) create mode 100644 docs/navidrome.md create mode 100644 docs/penpot.md diff --git a/README.md b/README.md index 7981be2..569c2ae 100644 --- a/README.md +++ b/README.md @@ -691,6 +691,14 @@ docker info [在 docker 中搭建内网穿透服务器,带WEB管理](docs/nps/README.md) +### `Penpot` + +[在 docker 中部署 Penpot](docs/penpot.md) + +### `Navidrome` + +[在 docker 中部署 Navidrome](docs/navidrome.md) + ### `Humpback` 首先创建放持久化数据文件夹,`mkdir -p /opt/app/humpback-web`,里面存放持久化数据文件,会存储站点管理和分组信息,启动后请妥善保存。 diff --git a/docs/navidrome.md b/docs/navidrome.md new file mode 100644 index 0000000..6c0e6a8 --- /dev/null +++ b/docs/navidrome.md @@ -0,0 +1,44 @@ +Navidrome +=== + +现代音乐服务器和流媒体兼容 Subsonic/Airsonic + +## 使用 `docker-compose` + +创建包含以下内容的 `docker-compose.yml` 文件(或将下面的 navidrome 服务添加到现有文件中): + +```yml +version: "3" +services: + navidrome: + image: deluan/navidrome:latest + user: 1000:1000 # should be owner of volumes + ports: + - "4533:4533" + restart: unless-stopped + environment: + # Optional: put your config options customization here. Examples: + ND_SCANSCHEDULE: 1h + ND_LOGLEVEL: info + ND_SESSIONTIMEOUT: 24h + ND_BASEURL: "" + volumes: + - "/path/to/data:/data" + - "/path/to/your/music/folder:/music:ro" +``` + +使用 `docker-compose up -d` 启动它。 请注意,上面的环境变量只是一个示例,不是必需的。 示例中的值已经是默认值 + +## 使用docker命令行工具 + +```bash +$ docker run -d \ + --name navidrome \ + --restart=unless-stopped \ + --user $(id -u):$(id -g) \ + -v /path/to/music:/music \ + -v /path/to/data:/data \ + -p 4533:4533 \ + -e ND_LOGLEVEL=info \ + deluan/navidrome:latest +``` \ No newline at end of file diff --git a/docs/penpot.md b/docs/penpot.md new file mode 100644 index 0000000..4064e2e --- /dev/null +++ b/docs/penpot.md @@ -0,0 +1,36 @@ +Penpot +=== + +开源设计和原型平台 + +## 启动 `Penpot` + +第一步,您需要获取 `docker-compose.yaml` 文件。 您可以从 [`Penpot`](https://raw.githubusercontent.com/penpot/penpot/main/docker/images/docker-compose.yaml) 存储库下载它。 + +```bash +wget https://raw.githubusercontent.com/penpot/penpot/main/docker/images/docker-compose.yaml +``` + +or + +```bash +curl -o docker-compose.yaml https://raw.githubusercontent.com/penpot/penpot/main/docker/images/docker-compose.yaml +``` + +然后只需启动 `Penpot`: + + +```bash +docker compose -p penpot -f docker-compose.yaml up -d +``` + +最后它将开始监听 http://localhost:9001 + + +## 停止 `Penpot` + +如果你想停止运行 Penpot,只需输入 + +```bash +docker compose -p penpot -f docker-compose.yaml down +``` \ No newline at end of file diff --git a/docs/portainer.md b/docs/portainer.md index 9abcd3b..12700d7 100644 --- a/docs/portainer.md +++ b/docs/portainer.md @@ -12,13 +12,20 @@ docker volume create portainer_data Docker Standalone ```bash -docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce +docker run -d \ + -p 8000:8000 \ + -p 9000:9000 \ + --name=portainer \ + --restart=always \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -v portainer_data:/data \ + portainer/portainer-ce ``` Docker Swarm ```bash -curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml +curl -L https://downloads.portainer.io/ee2-18/portainer-agent-stack.yml -o portainer-agent-stack.yml # 下载 https://downloads.portainer.io/portainer-agent-stack.yml docker stack deploy -c portainer-agent-stack.yml portainer ``` diff --git a/idoc.chapters.yml b/idoc.chapters.yml index 32ef9a5..6d17459 100644 --- a/idoc.chapters.yml +++ b/idoc.chapters.yml @@ -10,6 +10,8 @@ - nps/README.md: NPS 内网穿透 - portainer.md: Portainer Docker 管理 - postgres.md: PostgreSQL 数据库 +- penpot.md: Penpot 设计和原型 +- navidrome.md: Navidrome 音乐服务器 - rancher.md: Rancher 容器管理平台 - redis.md: Redis 数据库 - rocket.chat/README.md: Rocket.Chat 聊天工具