-
Notifications
You must be signed in to change notification settings - Fork 123
/
Copy pathdocker-compose.yml
106 lines (106 loc) · 2.63 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '2'
services:
rabbit-mq:
container_name: rabbit-mq
image: rabbitmq:3
expose:
- 5672
networks:
- event-driven-spring-boot-network
logging:
driver: json-file
credit-decision:
container_name: credit-decision
build:
context: credit-decision
dockerfile: Dockerfile
image: credit-decision:latest
expose:
- 9004
ports:
- "9004:9004"
networks:
- event-driven-spring-boot-network
depends_on:
- rabbit-mq
links:
- rabbit-mq:rabbit-mq
logging:
driver: json-file
application-process:
container_name: application-process
build:
context: application-process
dockerfile: Dockerfile
image: application-process:latest
expose:
- 9000
ports:
- "9000:9000"
networks:
- event-driven-spring-boot-network
depends_on:
- rabbit-mq
- credit-decision
links:
- rabbit-mq:rabbit-mq
- credit-decision:credit-decision
logging:
driver: json-file
credit-application:
container_name: credit-application
build:
context: credit-application
dockerfile: Dockerfile
image: credit-application:latest
expose:
- 9001
ports:
- "9001:9001"
networks:
- event-driven-spring-boot-network
depends_on:
- rabbit-mq
links:
- rabbit-mq:rabbit-mq
logging:
driver: json-file
customer:
container_name: customer
build:
context: customer
dockerfile: Dockerfile
image: customer:latest
expose:
- 9002
ports:
- "9002:9002"
networks:
- event-driven-spring-boot-network
depends_on:
- rabbit-mq
links:
- rabbit-mq:rabbit-mq
logging:
driver: json-file
scoring:
container_name: scoring
build:
context: scoring
dockerfile: Dockerfile
image: scoring:latest
expose:
- 9003
ports:
- "9003:9003"
networks:
- event-driven-spring-boot-network
depends_on:
- rabbit-mq
links:
- rabbit-mq:rabbit-mq
logging:
driver: json-file
networks:
event-driven-spring-boot-network:
driver: bridge