起因:
抖音推荐这个 Github 项目, 想着在 docker 上部署用一下看看。
项目链接:https://github.com/getmaxun/maxun
视频里说是最好的爬页工具

安装 maxun
1. 这次我想用 Docker Compose 来安装
git clone https://github.com/getmaxun/maxun
docker-compose up -d --build
2. 安装 git 工具
但用第一条时:
[/share/Multimedia/Github] # git clone https://github.com/getmaxun/maxun
Cloning into 'maxun'...
git: 'remote-https' is not a git command. See 'git --help'.
QNAP 现有的 git 不支持 https:// 参数
安装高版本的 git 工具

- 先,在 QNAP AppCenter 添加 myQNAP 仓库(respoistory)
- 再,右上角搜索“qgit” 找到这个工具
- 最后安装,就有如图的 QGit
3. 用 git 下载 maxun
[~] # git clone https://github.com/getmaxun/maxun
Cloning into 'maxun'...
remote: Enumerating objects: 18714, done.
remote: Counting objects: 100% (2029/2029), done.
remote: Compressing objects: 100% (1555/1555), done.
remote: Total 18714 (delta 532), reused 735 (delta 460), pack-reused 16685 (from 1)
Receiving objects: 100% (18714/18714), 2.17 MiB | 4.30 MiB/s, done.
Resolving deltas: 100% (11796/11796), done.
3. 使用 docker-compose.yml 安装
[~/maxun] # ls
docker-compose.yml Dockerfile index.html maxun-core/ package.json server/ tsconfig.json vite.config.js
docker-entrypoint.sh ENVEXAMPLE LICENSE nginx.conf README.md src/ typedoc.json vite-env.d.ts
操作如下:


tip: 下载的文件里有 ENVEXAMPLE,把它改名为 .env 并放到 /tmp
点 apply 按钮,然后各种报错(已经第5次)... 懒得去处理。开始是 .env 目录什么的,后来估计是 docker 缺少 docker-compose

3. QNAP Container Station 没有 docker-compose 命令:
从网上下载: https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-linux-x86_64
4. 然后 root “/” space full
[/share/Multimedia/Github/maxun] # docker-compose up -d --build
[+] Running 33/33
✔ minio 9 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled 31.7s
✔ 55360c0b72d6 Pull complete 8.3s
✔ f2f8f30a646a Pull complete 8.8s
✔ 3440aa9567dd Pull complete 9.0s
✔ 4414594dd510 Pull complete 27.4s
✔ c1cc85e2de65 Pull complete 28.8s
✔ d57a4fe62ee8 Pull complete 29.3s
✔ 48e0cffc0f68 Pull complete


1万+

被折叠的 条评论
为什么被折叠?



