Skip to content

Commit 4755c37

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

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

templates.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,61 @@
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+
"note": "Starts a server by default. <br/> It supports <b>HTML</b>.",
20+
"categories": ["service-discovery"],
21+
"platform": "linux",
22+
"logo": "https://cdn.rawgit.com/docker-library/docs/8adb88e1e328c244711742f65319ed4064cff9a2/consul/logo.svg",
23+
"image": "consul:latest",
24+
"env": [
25+
{
26+
"name": "CONSUL_LOCAL_CONFIG",
27+
"label": "Configuration JSON"
28+
},
29+
{
30+
"name": "CONSUL_CLIENT_INTERFACE",
31+
"label": "Client interface",
32+
"description": "e.g.: eth0"
33+
},
34+
{
35+
"name": "CONSUL_BIND_INTERFACE",
36+
"label": "Bind interface",
37+
"description": "e.g.: eth0"
38+
},
39+
{
40+
"name": "CONSUL_COMMAND_AGENT_MODE",
41+
"label": "Agent mode",
42+
"select": [
43+
{
44+
"text": "Server",
45+
"value": "-server"
46+
},
47+
{
48+
"text": "Client",
49+
"value": "-join="
50+
}
51+
]
52+
},
53+
{
54+
"name": "CONSUL_COMMAND_JOIN_IP",
55+
"label": "Root Agent IP"
56+
},
57+
{
58+
"name": "CONSUL_COMMAND_EXTRA_ARGS",
59+
"label": "Extra command args"
60+
}
61+
],
62+
"network": "host",
63+
"ports": [
64+
"8500/tcp",
65+
"8600/tcp"
66+
],
67+
"volumes": ["/consul/data", "/consul/config"],
68+
"command": "consul agent ${CONSUL_COMMAND_AGENT_MODE}${CONSUL_COMMAND_JOIN_IP} ${CONSUL_COMMAND_EXTRA_ARGS}"
69+
},
1570
{
1671
"type": "container",
1772
"title": "Nginx",

0 commit comments

Comments
 (0)