-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
148 lines (131 loc) · 4.04 KB
/
config.json
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"__remarks": {
"0": "Sections which prefix with '__' just provide some auxiliary info for helping you to understand the design, not real configurations."
},
"__portsDeclarations": {
"consul": "65400->65499",
"registries": "65300->65399",
"rabbitmq": {
"insecure": "65200->65299",
"secure": "65100->65199"
},
"email": "65000->65099",
"fluentdStack": "64900->64999",
"zipkinStack": "64800->64899",
"ciDroneIOStack": "64700->64799"
},
"consulHealthCheckOpts": {
"ttl": "30s",
"timeout": "1s",
"interval": "25s",
"deregisterAfter": "2m"
},
"registries": {
"__notes": {
"0": "Before set up the docker engine, the registries info must be finalized first.",
"1": "I mean how many registries we want to run, the corresponding domain names and TLS certs.",
"2": "Coz the most flexible way is just let all the docker engines know all the registries.",
"3": "Each registry has its own `--engine-insecure-registry` option in the `docker-machine create` command.",
"4": "So for simplifying the shell script, adding new registry pls also add the `--engine-insecure-registry` option there manually."
},
"dev": {
"hostname": "micro02.sgdev.vcube.com",
"port": 65300
},
"stg": {
"hostname": "",
"port": 65301
},
"prd": {
"0": {
"hostname": "",
"port": 65302
},
"1": {
"hostname": "",
"port": 65303
}
}
},
"machines": [
{
"__notes": {
"0": "First machine must be a swarm manager."
},
"hostname": "micro01.sgdev.vcube.com",
"ip": "10.0.3.159",
"asSwarmManager": true,
"asConsulServerAgent": true,
"asConsulClientAgent": true,
"asElasticsearchServer": true,
"asRabbitMQServer": {
"rabbitmqNodeType": "disc"
},
"asEmailServer": {
"domainName": "microservices.vcube.sg",
"users": [
"support:L6b8c38fb30664cdb25382d201893c1f"
]
},
"labels": {
"__notes": {
"0": "Each label has its own `--engine-label` option in the `docker-machine create` command.",
"1": "So for simplifying the shell script, adding new label pls also add the `--engine-label` option there manually"
},
"instanceType": "t2.micro"
},
"domainNames": [
"microservices.vcube.sg"
]
}, {
"hostname": "micro02.sgdev.vcube.com",
"ip": "10.0.3.160",
"asSwarmManager": true,
"asZipkinServer": true,
"asGrafanaServer": true,
"asFluentdServer": true,
"asCIDroneIOServer": true,
"asConsulServerAgent": true,
"asConsulClientAgent": true,
"asElasticsearchServer": true,
"asRabbitMQServer": {
"rabbitmqNodeType": "disc"
},
"labels": {
"__notes": {
"0": "Each label has its own `--engine-label` option in the `docker-machine create` command.",
"1": "So for simplifying the shell script, adding new label pls also add the `--engine-label` option there manually"
},
"instanceType": "t2.micro"
}
}, {
"hostname": "micro03.sgdev.vcube.com",
"ip": "10.0.3.161",
"asSwarmManager": false,
"asConsulServerAgent": true,
"asConsulClientAgent": true,
"asElasticsearchServer": true,
"asElasticsearchCoordinatorServer": true,
"asRabbitMQServer": {
"rabbitmqNodeType": "ram"
},
"labels": {
"__notes": {
"0": "Each label has its own `--engine-label` option in the `docker-machine create` command.",
"1": "So for simplifying the shell script, adding new label pls also add the `--engine-label` option there manually"
},
"instanceType": "t2.micro"
}
}
],
"remoteProvisioner": {
"user": "leonard",
"homeDir": "/home/leonard/",
"path2RSAKey": "/Users/leonard/.ssh/id_rsa"
},
"subnets": {
"ingress": "172.31.0.0/16",
"management": "172.30.0.0/16",
"gateServicesStack": "172.29.0.0/16"
}
}