star7th / showdoc

ShowDoc is a tool greatly applicable for an IT team to share documents online一个非常适合IT团队的在线API文档、技术文档工具
https://www.showdoc.com.cn
Other
12.27k stars 2.19k forks source link

[Help] 国内使用 docker-compose 部署 showdoc #2283

Closed tanpenggood closed 2 weeks ago

tanpenggood commented 2 weeks ago

大大 请教一下,现在国内用 docker-compose 部署 showdoc 我应该怎么操作才能成功在本地部署呀~

我使用最新的源码,第一步构建都失败,沮丧中~~~。

环境

报错

# docker compose build --build-arg IN_CHINA=true
WARN[0000] /home/data/tp-docker/showdoc-source-code/showdoc/docker-compose.yml: `version` is obsolete 
[+] Building 45.3s (2/2) FINISHED                                                                                                                                         docker:default
 => [showdoc internal] load build definition from Dockerfile                                                                                                                        0.0s
 => => transferring dockerfile: 360B                                                                                                                                                0.0s
 => ERROR [showdoc internal] load metadata for docker.io/webdevops/php-nginx:8.3-alpine                                                                                            45.2s
------
 > [showdoc internal] load metadata for docker.io/webdevops/php-nginx:8.3-alpine:
------
failed to solve: webdevops/php-nginx:8.3-alpine: failed to resolve source metadata for docker.io/webdevops/php-nginx:8.3-alpine: failed to do request: Head "https://registry-1.docker.io/v2/webdevops/php-nginx/manifests/8.3-alpine": dial tcp 104.244.43.57:443: i/o timeout

/etc/docker/daemon.json

{
  "registry-mirrors": ["https://7x4v7jkb.mirror.aliyuncs.com"]
}
star7th commented 2 weeks ago

如果你只是想开箱即用,用官方国内镜像就好 https://www.showdoc.com.cn/help/65610

tanpenggood commented 2 weeks ago

如果你只是想开箱即用,用官方国内镜像就好 https://www.showdoc.com.cn/help/65610

PS:我们公司的电脑会对这个链接进行屏蔽😂,挺烦人~

我在另外一个 issue#2226 找到了你提供的国内镜像 latest 版,现在已经在本地成功安装了。

再次感谢大大,话说你的回复速度也太快了~