1 Star 0 Fork 0

ZhengbiaoHu/ElmSpringCloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
compose.yml 3.62 KB
一键复制 编辑 原始数据 按行查看 历史
ZhengbiaoHu 提交于 2024-07-12 16:37 . final
version: '3.8'
services:
eureka-server1:
image: register:latest
container_name: eureka001
ports:
- "9901:8761" # 通常Eureka使用8761端口
environment:
- server.port=8761
- eureka.instance.hostname=eureka1
- eureka.client.service-url.defaultZone=http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
eureka-server2:
image: register:latest
container_name: eureka002
ports:
- "9902:8761"
environment:
- server.port=8761
- eureka.instance.hostname=eureka2
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka003:8761/eureka/
eureka-server3:
image: register:latest
container_name: eureka003
ports:
- "9903:8761"
environment:
- server.port=8761
- eureka.instance.hostname=eureka3
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/
user-server:
image: user:latest
container_name: user
ports:
- "9904:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
orders-server:
image: orders:latest
container_name: orders
ports:
- "9905:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
gateway-server:
image: gateway:latest
container_name: gateway1
ports:
- "9906:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
food-server:
image: food:latest
container_name: food
ports:
- "9907:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
deliveryaddress-server:
image: deliveryaddress:latest
container_name: delivery
ports:
- "9908:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
cart-server:
image: cart:latest
container_name: cart
ports:
- "9909:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
business-server:
image: business:latest
container_name: business
ports:
- "9910:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
admin-server1:
image: admin:latest
container_name: admin1
ports:
- "9911:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
admin-server2:
image: admin:latest
container_name: admin2
ports:
- "9912:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
admin-server3:
image: admin:latest
container_name: admin3
ports:
- "9913:80"
environment:
- server.port=80
- eureka.client.service-url.defaultZone=http://eureka001:8761/eureka/,http://eureka002:8761/eureka/,http://eureka003:8761/eureka/
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZhengbiaoHu/elm-spring-cloud.git
[email protected]:ZhengbiaoHu/elm-spring-cloud.git
ZhengbiaoHu
elm-spring-cloud
ElmSpringCloud
master

搜索帮助