-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
78 lines (78 loc) · 2.73 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "2.1"
services:
infrastructure-rabbitmq:
container_name: infrastructure-rabbitmq
image: healthcheck/rabbitmq:alpine
networks: [turbine-network]
ports: ["5672:5672"]
volumes: ["infrastructure-rabbitmq-data:/var/lib/rabbitmq"]
infrastructure-eureka-server:
container_name: infrastructure-eureka-server
depends_on: [infrastructure-rabbitmq]
environment:
SPRING_RABBITMQ_ADDRESSES: infrastructure-rabbitmq
extends:
file: ./compose/docker-compose-base.yml
service: microservice
networks: [turbine-network]
ports: ["8761:8761"]
volumes:
- "infrastructure-eureka-server-data:/var/app"
- "./infrastructure/eureka-server/build/libs/eureka-server-0.0.1.jar:/var/app/app.jar:ro"
infrastructure-hystrix-aggregator:
extends:
file: ./compose/docker-compose-base.yml
service: microservice
depends_on:
- infrastructure-rabbitmq
- infrastructure-eureka-server
environment:
SPRING_RABBITMQ_ADDRESSES: infrastructure-rabbitmq
DISCOVERY_SERVICE_HOST: infrastructure-eureka-server
networks: [turbine-network]
ports: ["8002:8002"]
volumes:
- "infrastructure-hystrix-aggregator-data:/var/app"
- "./infrastructure/hystrix-aggregator/build/libs/hystrix-aggregator-0.0.1.jar:/var/app/app.jar:ro"
infrastructure-hystrix-dashboard:
extends:
file: ./compose/docker-compose-base.yml
service: microservice
depends_on:
- infrastructure-rabbitmq
- infrastructure-eureka-server
- infrastructure-hystrix-aggregator
environment:
SPRING_RABBITMQ_ADDRESSES: infrastructure-rabbitmq
DISCOVERY_SERVICE_HOST: infrastructure-eureka-server
networks: [turbine-network]
ports: ["8003:8003"]
volumes:
- "infrastructure-hystrix-dashboard-data:/var/app"
- "./infrastructure/hystrix-dashboard/build/libs/hystrix-dashboard-0.0.1.jar:/var/app/app.jar:ro"
modules-app1:
#links: ["srv-db:db"]
#command: sh -c "mkdir -f /var/app # not needed with docker-compose"
extends:
file: ./compose/docker-compose-base.yml
service: microservice
depends_on:
- infrastructure-rabbitmq
- infrastructure-eureka-server
environment:
SPRING_RABBITMQ_ADDRESSES: infrastructure-rabbitmq
DISCOVERY_SERVICE_HOST: infrastructure-eureka-server
networks: [turbine-network]
ports: ["8001:8001"]
volumes:
- "modules-app1-data:/var/app"
- "./modules/app1/build/libs/app1-0.0.1.jar:/var/app/app.jar:ro"
networks:
turbine-network:
driver: bridge
volumes:
infrastructure-rabbitmq-data: {}
infrastructure-eureka-server-data: {}
infrastructure-hystrix-dashboard-data: {}
infrastructure-hystrix-aggregator-data: {}
modules-app1-data: {}