ruoyi-cloud docker部署

基础环境安装

 1# docker 脚本安装
 2curl -sSL https://get.daocloud.io/docker | sh
 3
 4#docker compose 脚本安装
 5curl -L https://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
 6
 7
 8#可执行权限
 9sudo chmod +x /usr/local/bin/docker-compose
10#创建软链:
11sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
12#测试是否安装成功
13docker-compose --version

下载安装

1git clone https://gitlab.sanjiang.com/it-group/ruoyi-cloud.git

编译

1cd ruoyi-cloud
2mvn clean install -DskipTests

复制 jar 包

1cd ./docker
2./copy.sh

部署 docker

1./deploy.sh base
2./deploy.sh modules

检查 docker

1docker ps -a | grep ruoyi
2docker logs -f ruoyi-auth
3docker logs -f ruoyi-gateway
4docker logs -f ruoyi-modules-system