-
Notifications
You must be signed in to change notification settings - Fork 12
/
consul-server-definition.json
66 lines (66 loc) · 1.67 KB
/
consul-server-definition.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
{
"containerDefinitions": [{
"essential": true,
"cpu": 20,
"memory": 128,
"image": "majest/docker-consul-ecs:latest",
"name": "consul-server",
"mountPoints": [{
"containerPath": "/data",
"sourceVolume": "consuldata",
"readOnly": false
}],
"portMappings": [{
"containerPort": 8300,
"hostPort": 8300,
"protocol": "tcp"
}, {
"containerPort": 8301,
"hostPort": 8301,
"protocol": "tcp"
}, {
"containerPort": 8301,
"hostPort": 8301,
"protocol": "udp"
}, {
"containerPort": 8302,
"hostPort": 8302,
"protocol": "tcp"
}, {
"containerPort": 8400,
"hostPort": 8400,
"protocol": "tcp"
}, {
"containerPort": 8500,
"hostPort": 8500,
"protocol": "tcp"
}, {
"containerPort": 8600,
"hostPort": 53,
"protocol": "udp"
}],
"dnsServers": [
"172.17.0.1",
"8.8.8.8"
],
"environment": [{
"name": "CONSUL_PARAMS",
"value": "-bootstrap-expect 3"
}, {
"name": "EC2_TAG_KEY",
"value": "__TAGKEY__"
}, {
"name": "EC2_TAG_VALUE",
"value": "__TAGVALUE__"
}
],
"dnsSearchDomains": ["service.consul"]
}],
"family": "consul-server",
"volumes": [{
"host": {
"sourcePath": "/opt/rtc/consul"
},
"name": "consuldata"
}]
}