1 Star 0 Fork 0

okleaf/microservices-examples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-images.yml 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
rabbitmq:
image: rabbitmq:3.5.3-management
ports:
- "5672:5672"
- "15672:15672"
eureka:
build: ./eureka-server
ports:
- "8761:8761"
zipkin:
build: ./zipkin-server
links:
- rabbitmq
ports:
- "9411:9411"
environment:
RABBIT_HOST: rabbitmq
mongodb:
image: mongo:3.0.4
ports:
- "27017:27017"
command: mongod --smallfiles
restfulservice:
image: sb_rest_svc
ports:
- "8081:8080"
links:
- rabbitmq
- mongodb
- eureka
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongodb/userregistration
SPRING_RABBITMQ_HOST: rabbitmq
SPRING_APPLICATION_NAME: registration-service
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
SPRING_PROFILES_ACTIVE: enableEureka
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
web:
image: sb_web
ports:
- "8080:8080"
links:
- eureka
environment:
USER_REGISTRATION_URL: http://REGISTRATION-SERVICE/user
SPRING_APPLICATION_NAME: registration-web
EUREKA_INSTANCE_PREFER_IP_ADDRESS: "true"
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka:8761/eureka/
SPRING_PROFILES_ACTIVE: enableEureka
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/okleaf/microservices-examples.git
git@gitee.com:okleaf/microservices-examples.git
okleaf
microservices-examples
microservices-examples
master

搜索帮助