-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.hcl
76 lines (71 loc) · 2.46 KB
/
config.hcl
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
job "arangodb3_sample" {
group "agency" {
count = 3
constraint {
attribute = "meta.core"
value = "true"
}
task "agency" {
image = "pulcy/arangodb-cluster:latest"
volumes = [
"/etc/ssl/:/etc/ssl/:ro",
"/usr/share/ca-certificates/:/usr/share/ca-certificates/:ro",
"/usr/bin/etcdctl:/usr/bin/etcdctl:ro",
]
ports = ["{{private_ipv4}}:5007:8529"]
args = [
"--host={{private_ipv4}}",
"--port=5007",
"--instance=${instance}",
"--role=agency",
"--etcd-prefix=/pulcy/arangodb3/sample",
"--etcd-url=http://{{private_ipv4}}:2379",
]
docker-args = ["--add-host", "www.arangodb.com:127.0.0.1"]
}
}
group "server" {
count = 2
constraint {
attribute = "meta.arangodb"
value = "1"
}
task "db" {
image = "pulcy/arangodb-cluster:latest"
volumes = [
"/etc/ssl/:/etc/ssl/:ro",
"/usr/share/ca-certificates/:/usr/share/ca-certificates/:ro",
"/usr/bin/etcdctl:/usr/bin/etcdctl:ro",
]
ports = ["{{private_ipv4}}:5008:8529"]
args = [
"--host={{private_ipv4}}",
"--port=5008",
"--instance=${instance}",
"--role=primary",
"--etcd-prefix=/pulcy/arangodb3/sample",
"--etcd-url=http://{{private_ipv4}}:2379",
]
docker-args = ["--add-host", "www.arangodb.com:127.0.0.1"]
}
task "coordinator" {
image = "pulcy/arangodb-cluster:latest"
volumes = [
"/etc/ssl/:/etc/ssl/:ro",
"/usr/share/ca-certificates/:/usr/share/ca-certificates/:ro",
"/usr/bin/etcdctl:/usr/bin/etcdctl:ro",
]
ports = ["{{private_ipv4}}:5009:8529"]
args = [
"--log-level=info",
"--host={{private_ipv4}}",
"--port=5009",
"--instance=${instance}",
"--role=coordinator",
"--etcd-prefix=/pulcy/arangodb3/sample",
"--etcd-url=http://{{private_ipv4}}:2379",
]
docker-args = ["--add-host", "www.arangodb.com:127.0.0.1"]
}
}
}