Skip to content

Commit 9af70d2

Browse files
committed
portainer#62 feat(template): add consul.io template
1 parent 997e1bb commit 9af70d2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

templates.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,37 @@
1212
],
1313
"volumes": ["/var/lib/registry"]
1414
},
15+
{
16+
"type": "container",
17+
"title": "Consul",
18+
"description": "Highly available and distributed service discovery and KV store",
19+
"categories": ["service-discovery"],
20+
"platform": "linux",
21+
"logo": "https://cdn.rawgit.com/docker-library/docs/8adb88e1e328c244711742f65319ed4064cff9a2/consul/logo.svg",
22+
"image": "consul:latest",
23+
"env": [
24+
{
25+
"name": "CONSUL_LOCAL_CONFIG",
26+
"label": "Configuration JSON"
27+
},
28+
{
29+
"name": "CONSUL_CLIENT_INTERFACE",
30+
"label": "Client interface",
31+
"description": "e.g.: eth0"
32+
},
33+
{
34+
"name": "CONSUL_BIND_INTERFACE",
35+
"label": "Bind interface",
36+
"description": "e.g.: eth0"
37+
}
38+
],
39+
"network": "host",
40+
"ports": [
41+
"8500/tcp",
42+
"8600/tcp"
43+
],
44+
"volumes": ["/consul/data", "/consul/config"]
45+
},
1546
{
1647
"type": "container",
1748
"title": "Nginx",

0 commit comments

Comments
 (0)