1 Star 0 Fork 7

halsey / spring-microservice-exam-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
GuYiTan 提交于 2020-07-04 10:47 . k8s+istio+spring cloud+jwt demo
version: '2.1'
services:
gateway-service:
build: spring-cloud/gateway-service
image: sg-exam/gateway-service
mem_limit: 256m
networks:
- my-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_LOCATION=file:/config-repo/application.yml,file:/config-repo/gateway-service.yml
volumes:
- $PWD/config-repo:/config-repo
depends_on:
auth-service:
condition: service_healthy
auth-service:
build: spring-cloud/auth-service
image: sg-exam/auth-service
mem_limit: 256m
networks:
- my-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_LOCATION=file:/config-repo/application.yml,file:/config-repo/auth-service.yml
volumes:
- $PWD/config-repo:/config-repo
depends_on:
user-service:
condition: service_healthy
user-service:
build: microservices/user-service
image: sg-exam/user-service
mem_limit: 256m
networks:
- my-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_LOCATION=file:/config-repo/application.yml,file:/config-repo/user-service.yml
volumes:
- $PWD/config-repo:/config-repo
exam-service:
build: microservices/exam-service
image: sg-exam/exam-service
mem_limit: 256m
networks:
- my-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_LOCATION=file:/config-repo/application.yml,file:/config-repo/exam-service.yml
volumes:
- $PWD/config-repo:/config-repo
msc-service:
build: microservices/msc-service
image: sg-exam/msc-service
mem_limit: 256m
networks:
- my-network
environment:
- SPRING_PROFILES_ACTIVE=docker
- SPRING_CONFIG_LOCATION=file:/config-repo/application.yml,file:/config-repo/msc-service.yml
volumes:
- $PWD/config-repo:/config-repo
networks:
my-network:
name: my-network
Java
1
https://gitee.com/shuimainius/spring-microservice-exam-demo.git
git@gitee.com:shuimainius/spring-microservice-exam-demo.git
shuimainius
spring-microservice-exam-demo
spring-microservice-exam-demo
master

搜索帮助