mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-07 12:59:01 +00:00
add 升级 Seata 1.5.X 源码集成服务端
This commit is contained in:
@@ -27,6 +27,7 @@ port(){
|
||||
# sentinel端口
|
||||
firewall-cmd --add-port=8718/tcp --permanent
|
||||
# seata端口
|
||||
firewall-cmd --add-port=7091/tcp --permanent
|
||||
firewall-cmd --add-port=8091/tcp --permanent
|
||||
# 重启防火墙
|
||||
service firewalld restart
|
||||
@@ -49,11 +50,6 @@ mount(){
|
||||
mkdir -p /docker/nacos/conf
|
||||
cp nacos/custom.properties /docker/nacos/conf/custom.properties
|
||||
fi
|
||||
#挂载 seata 配置文件
|
||||
if test ! -f "/docker/seata/conf/registry.conf" ;then
|
||||
mkdir -p /docker/seata/conf
|
||||
cp seata/registry.conf /docker/seata/conf/registry.conf
|
||||
fi
|
||||
}
|
||||
|
||||
#启动基础模块
|
||||
|
@@ -113,24 +113,22 @@ services:
|
||||
ipv4_address: 172.30.0.54
|
||||
|
||||
seata-server:
|
||||
image: seataio/seata-server:1.4.2
|
||||
image: ruoyi/ruoyi-seata-server:0.11.0
|
||||
container_name: seata-server
|
||||
ports:
|
||||
- "7091:7091"
|
||||
- "8091:8091"
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
# 注意 此处ip如果是外网使用 要改为外网ip
|
||||
SEATA_IP: 172.30.0.58
|
||||
# SEATA_IP: 127.0.0.1
|
||||
SEATA_PORT: 8091
|
||||
STORE_MODE: db
|
||||
SEATA_CONFIG_NAME: file:/root/seata-config/registry
|
||||
volumes:
|
||||
- /docker/seata/config:/root/seata-config
|
||||
- /docker/ruoyi-seata-server/logs/:/ruoyi/seata-server/logs
|
||||
privileged: true
|
||||
restart: always
|
||||
networks:
|
||||
ruoyi_net:
|
||||
ipv4_address: 172.30.0.58
|
||||
- ruoyi_net
|
||||
|
||||
nginx-web:
|
||||
image: nginx:1.21.3
|
||||
|
@@ -1,28 +0,0 @@
|
||||
registry {
|
||||
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
|
||||
type = "nacos"
|
||||
|
||||
nacos {
|
||||
application = "seata-server"
|
||||
serverAddr = "172.30.0.40:8848"
|
||||
group = "DEFAULT_GROUP"
|
||||
namespace = "dev"
|
||||
cluster = "default"
|
||||
username = ""
|
||||
password = ""
|
||||
}
|
||||
}
|
||||
|
||||
config {
|
||||
# file、nacos 、apollo、zk、consul、etcd3
|
||||
type = "nacos"
|
||||
|
||||
nacos {
|
||||
serverAddr = "172.30.0.40:8848"
|
||||
group = "DEFAULT_GROUP"
|
||||
namespace = "dev"
|
||||
username = ""
|
||||
password = ""
|
||||
dataId = "seata-server.properties"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user