使用Docker Compose部署SpringCloud项目docker-compose.yml文件示例
Posted 三度
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用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
以上是关于使用Docker Compose部署SpringCloud项目docker-compose.yml文件示例的主要内容,如果未能解决你的问题,请参考以下文章
使用docker-compose.yml在swarm中部署应用
如何使用 docker-compose 将容器部署到谷歌云?