使用Docker Compose部署SpringCloud项目docker-compose.yml文件示例


注意各组件之间的依赖关系

microservice-discovery-eureka:
  image: reg.itmuch.com/microservice-discovery-eureka
  ports:
  - 8761:8761
  hostname: discovery
microservice-provider-user:
  image: reg.itmuch.com/microservice-provider-user
  ports:
  - 8000:8000
  links:
  - microservice-discovery-eureka
microservice-consumer-movie-ribbon-with-hystrix:
  image: reg.itmuch.com/microservice-consumer-movie-ribbon-with-hystrix
  ports:
  - 8011:8011
  links:
  - microservice-discovery-eureka
  hostname: ribbon
microservice-hystrix-dashboard:
  image: reg.itmuch.com/microservice-hystrix-dashboard
  ports:
  - 8030:8030
  links:
  - microservice-discovery-eureka
  - microservice-hystrix-turbine
microservice-hystrix-turbine:
  image: reg.itmuch.com/microservice-hystrix-turbine
  ports:
  - 8031:8031
  links:
  - microservice-discovery-eureka
  - microservice-consumer-movie-ribbon-with-hystrix
microservice-api-gateway:
  image: reg.itmuch.com/microservice-api-gateway
  ports:
  - 8050:8050
  links:
  - microservice-discovery-eureka
  - microservice-consumer-movie-ribbon-with-hystrix


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM