-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker-compose一键部署出错 #6
Comments
请重新拉取一下最近的项目,最近重新测试了一下,应该没有问题 |
ERROR [builder 4/4] RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,https://goproxy.io,direct && go mod tidy && go build -o server . 0.3s
|
把用 docker-compose 一键运行模块重新整理了一下,应该没问题了 Linux 下可以正常启动:(Windows 请使用 git clone https://github.com/szluyu99/gin-vue-blog
cd gin-vue-blog/deploy
./bootstrap.sh |
部署 gvb-server 的时候这一行报错了 提示我 /gvb 下没有go文件 这个WORKDIR是不是要做修改 |
后端重构了一下,拉取最新项目应该可以了 |
macbook@bogon deploy % ./bootstrap.sh |
给个权限试试 |
今天尝试了一下,还是会出现这个问题,两个分支都一样。 [root@master deploy]# ./bootstrap.sh
未找到容器 gvb-web
未找到容器 gvb-server
未找到容器 gvb-redis
未找到容器 gvb-mysql
本项目相关 Docker 容器清理完成
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.gvb-server.ports is invalid: Invalid port "5678 # 前台服务端口:5678 # 前台服务端口", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]
services.gvb-server.ports is invalid: Invalid port "8765 # 后台服务端口:8765 # 后台服务端口", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]
services.gvb-server.depends_on contains an invalid type, it should be an array 系统信息如下: [root@master deploy]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core) Docker 版本如下: [root@master deploy]# docker --version
Docker version 25.0.3, build 4debf41
[root@master deploy]# |
后续更新:只需要把docker-compose 文件中的 |
docker-compose up -d
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.gvb-server.ports is invalid: Invalid port "5678 # 前台服务端口:5678 # 前台服务端口", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]
services.gvb-server.ports is invalid: Invalid port "8765 # 后台服务端口:8765 # 后台服务端口", should be [[remote_ip:]remote_port[-remote_port]:]port[/protocol]
services.gvb-server.depends_on contains an invalid type, it should be an array
[root@chatbot start]#
The text was updated successfully, but these errors were encountered: