forked from paulc4/microservices-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmicroservices-example.yaml
More file actions
105 lines (105 loc) · 3.16 KB
/
microservices-example.yaml
File metadata and controls
105 lines (105 loc) · 3.16 KB
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
---
template:
templateName: MicroservicesExample
templateVersion: 1.0.7
templateDescription: Spring Eureka Microservices and Service Registry Example
parameters:
serviceRegistryName:
label: Service registry application name
description: The name of the service registry application
type: String
mandatory: true
default: registry
accountsServiceName:
label: Accounts service application name
description: The name of the accounts application
type: String
mandatory: true
default: accounts
webServiceName:
label: Web servcie application name
description: The name of the web application
type: String
mandatory: true
default: web
applicationArchivePath:
label: Application archive storage cloud path
description: Location from where the app archive can be downloaded
type: String
mandatory: true
default: microservices-example/microservices-example-dist.zip
resources:
registry:
type: apaas
parameters:
name:
Fn::GetParam: serviceRegistryName
runtime: Java
subscription: MONTHLY
archiveURL:
Fn::GetParam: applicationArchivePath
manifest:
runtime:
majorVersion: 8
command: sh start.sh registration
isClustered: true
startupTime: 120
deployment:
memory: 1G
instances: 1
accounts:
depends_on:
- registry
type: apaas
parameters:
name:
Fn::GetParam: accountsServiceName
runtime: Java
subscription: MONTHLY
archiveURL:
Fn::GetParam: applicationArchivePath
manifest:
runtime:
majorVersion: 8
command: sh start.sh accounts
isClustered: true
startupTime: 120
deployment:
memory: 2G
instances: 1
environment:
REGISTRY_URL:
Fn::Join:
- ""
-
- "http://"
- Fn::GetAtt: [registry, name]
- ":8080"
web:
depends_on:
- registry
type: apaas
parameters:
name:
Fn::GetParam: webServiceName
runtime: Java
subscription: MONTHLY
archiveURL:
Fn::GetParam: applicationArchivePath
manifest:
runtime:
majorVersion: 8
command: "sh start.sh web"
isClustered: true
startupTime: 120
deployment:
memory: 2G
instances: 1
environment:
REGISTRY_URL:
Fn::Join:
- ""
-
- "http://"
- Fn::GetAtt: [registry, name]
- ":8080"