apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.35k stars 8.78k forks source link

docker-compose部署,配置SEATA_IP无效 #6985

Closed 320187240 closed 1 week ago

320187240 commented 1 week ago

Ⅰ. docker-compose部署时,配置SEATA_IP无效

Ⅱ. docker-compose部署时,配置SEATA_IP无效

seata-server: image: seataio/seata-server:1.8.0.1 container_name: seata-server environment:

Ⅲ. 使用docker-compose部署,配置SEATA_IP生效,在nacos注册时使用宿主机ip

Ⅳ. How to reproduce it (as minimally and precisely as possible)

seata-server: image: seataio/seata-server:1.8.0.1 container_name: seata-server environment:

Ⅴ. Anything else we need to know?

我怀疑networks覆盖了seata_ip配置,其他Issue提到过docker run 命令启动方式seata_ip是生效的,经测试在不连接容器网络前提下是有效的,但是会导致无法通过域名方式访问其他容器

Ⅵ. Environment:

funky-eyes commented 1 week ago

seata_ip -> SEATA_IP

320187240 commented 1 week ago

seata_ip -> SEATA_IP

实测有用,谢谢