容器部署
gops容器化安装配置
wget https://github.com/zttheff/gops/releases/download/v1.1.3/gops-installer-docker-webssh-v2.2.tar.gz
tar xvf gops-installer-docker-webssh-v2.2.tar.gz
开启webssh功能修改对应fe配置:
vim fe/config.config.json
# 修改为对应容器部署物理机ip地址
{
"WEB_SSH_URL": "ws://172.25.2.174:9001"
}
依赖 Docker Compose 2.0+
执行安装脚本:
安装: ./gops.sh install
Note: docker version: 18.09.9
Note: docker-compose version: 2.10.2
Gops Deployment Management Script
Usage:
./gops.sh [COMMAND] [ARGS...]
Installation Commands:
install Install gops
Management Commands:
start Start gops docker containers
stop Stop gops docker containers
rm rm gops docker containers
docker ps | grep gops
9fb6c1f6276b alpine:latest "/app/mars/mars star…" 8 days ago Up 8 days 0.0.0.0:9001->9001/tcp, 0.0.0.0:9013->9013/tcp gops-mars
dd28cdba213f alpine:latest "/app/jupiter/jupite…" 8 days ago Up 8 days 0.0.0.0:9002->9002/tcp, 0.0.0.0:9012->9012/tcp gops-jupiter
d36289804dfe alpine:latest "/app/saturn/saturn …" 8 days ago Up 8 days 0.0.0.0:9003->9003/tcp gops-saturn
94b0cec24101 mysql:5.7.41-debian "docker-entrypoint.s…" 8 days ago Up 8 days 33060/tcp, 0.0.0.0:13306->3306/tcp gops-db
ae6310765673 nginx:1.22-alpine "/docker-entrypoint.…" 8 days ago Up 8 days 0.0.0.0:8181->80/tcp gops-dashboard
安装完成后查看登录密码
docker logs gops-jupiter
登录gops
浏览器打开: http://127.0.0.1:8181
最后更新于