update 更新 业务模块 集群配置

feature/model
疯狂的狮子li 3 years ago
parent bc5898b8cd
commit dcad0cdf92

@ -29,12 +29,12 @@ base(){
#启动程序模块
start(){
docker-compose up -d ruoyi-admin
docker-compose up -d ruoyi-server1 ruoyi-server2
}
#停止程序模块
stop(){
docker-compose stop ruoyi-admin
docker-compose stop ruoyi-server1 ruoyi-server2
}
#关闭所有模块

@ -75,19 +75,32 @@ services:
ruoyi_net:
ipv4_address: 172.30.0.48
ruoyi-admin:
image: "ruoyi/ruoyi-admin:2.4.0"
ruoyi-server1:
image: "ruoyi/ruoyi-server:2.4.0"
environment:
- TZ=Asia/Shanghai
volumes:
# 配置文件
- /docker/server/logs/:/ruoyi/server/logs/
- /docker/server1/logs/:/ruoyi/server/logs/
privileged: true
restart: always
networks:
ruoyi_net:
ipv4_address: 172.30.0.60
ruoyi-server2:
image: "ruoyi/ruoyi-server:2.4.0"
environment:
- TZ=Asia/Shanghai
volumes:
# 配置文件
- /docker/server2/logs/:/ruoyi/server/logs/
privileged: true
restart: always
networks:
ruoyi_net:
ipv4_address: 172.30.0.61
networks:
ruoyi_net:
driver: bridge

Loading…
Cancel
Save