-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-runtime-consul-full.yml
128 lines (115 loc) · 3.16 KB
/
docker-compose-runtime-consul-full.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: "3.0"
networks:
sagdemoruntime:
external: true
services:
msc_apimashup_userfull_1:
image: ${REG}softwareag_custom/sag-microservice-demo_apimashup_userfull:${TAG}
build:
context: .
dockerfile: Dockerfile.apimashup.userfull
args:
PARENT_IMAGE: store/softwareag/webmethods-microservicesruntime:${TAG}
SAG_HOME: /opt/softwareag
MSC_INSTANCE_NAME: default
ports:
- "5556:5555"
environment:
- registry_activate=true
networks:
- sagdemoruntime
depends_on:
- consul-server-bootstrap
- msc_iplocator_1
- msc_userinfo_1
- msc_fibonacci_1
msc_userinfo_1:
image: ${REG}softwareag_custom/sag-microservice-demo_userinfo:${TAG}
build:
context: .
dockerfile: Dockerfile.userinfo
args:
PARENT_IMAGE: store/softwareag/webmethods-microservicesruntime:${TAG}
SAG_HOME: /opt/softwareag
MSC_INSTANCE_NAME: default
ports:
- "5558:5555"
environment:
- registry_activate=true
networks:
- sagdemoruntime
depends_on:
- consul-server-bootstrap
- msc_randomutils_1
msc_iplocator_1:
image: ${REG}softwareag_custom/sag-microservice-demo_iplocator:${TAG}
build:
context: .
dockerfile: Dockerfile.iplocator
args:
PARENT_IMAGE: store/softwareag/webmethods-microservicesruntime:${TAG}
SAG_HOME: /opt/softwareag
MSC_INSTANCE_NAME: default
ports:
- "5557:5555"
environment:
- registry_activate=true
networks:
- sagdemoruntime
depends_on:
- consul-server-bootstrap
msc_fibonacci_1:
image: ${REG}softwareag_custom/sag-microservice-demo_fibonacci:${TAG}
build:
context: .
dockerfile: Dockerfile.fibonacci
args:
PARENT_IMAGE: store/softwareag/webmethods-microservicesruntime:${TAG}
SAG_HOME: /opt/softwareag
MSC_INSTANCE_NAME: default
ports:
- "5559:5555"
environment:
- registry_activate=true
networks:
- sagdemoruntime
depends_on:
- consul-server-bootstrap
msc_randomutils_1:
image: ${REG}softwareag_custom/sag-microservice-demo_randomutils:${TAG}
build:
context: .
dockerfile: Dockerfile.randomutils
args:
PARENT_IMAGE: store/softwareag/webmethods-microservicesruntime:${TAG}
SAG_HOME: /opt/softwareag
MSC_INSTANCE_NAME: default
ports:
- "5560:5555"
environment:
- registry_activate=true
networks:
- sagdemoruntime
depends_on:
- consul-server-bootstrap
consul-agent-1: &consul-agent
image: consul:1.2.3
networks:
- sagdemoruntime
command: "agent -retry-join consul-server-bootstrap -client 0.0.0.0"
consul-agent-2:
<<: *consul-agent
consul-agent-3:
<<: *consul-agent
consul-server-1: &consul-server
<<: *consul-agent
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
consul-server-2:
<<: *consul-server
consul-server-bootstrap:
<<: *consul-agent
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0"