Skip to content

Commit ad52319

Browse files
authored
Merge pull request caprover#25 from GregaVrbancic/rabbitmq
Add RabbitMQ template
2 parents 3002df2 + 365b582 commit ad52319

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

public/v1/apps/rabbitmq.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"captainVersion": "1",
3+
"documentation": "Taken from https://hub.docker.com/_/rabbitmq",
4+
"dockerCompose": {
5+
"version": "3.3",
6+
"services": {
7+
"$$cap_appname": {
8+
"image": "rabbitmq:$$cap_rabbitmq_version",
9+
"notExposeAsWebApp": "true",
10+
"volumes": [
11+
"$$cap_appname-rabbitmq-data:/var/lib/rabbitmq"
12+
],
13+
"restart": "always",
14+
"environment": {
15+
"RABBITMQ_DEFAULT_USER": "$$cap_rabbitmq_user",
16+
"RABBITMQ_DEFAULT_PASS": "$$cap_rabbitmq_password"
17+
}
18+
}
19+
}
20+
},
21+
"instructions": {
22+
"start": "RabbitMQ is open source message broker software (sometimes called message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP). The RabbitMQ server is written in the Erlang programming language and is built on the Open Telecom Platform framework for clustering and failover. Client libraries to interface with the broker are available for all major programming languages.\n\n Enter your RabbitMQ Configuration parameters and click on next. It will take about a minute for the process to finish.",
23+
"end": "RabbitMQ is deployed and available as srv-captain--$$cap_appname:5672 to other apps."
24+
},
25+
"variables": [{
26+
"id": "$$cap_rabbitmq_version",
27+
"label": "RabbitMQ Version Tag",
28+
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/rabbitmq/tags/",
29+
"defaultValue": "3.7",
30+
"validRegex": "/^([^\\s^\\/])+$/"
31+
},
32+
{
33+
"id": "$$cap_rabbitmq_user",
34+
"label": "RabbitMQ Default User",
35+
"description": "",
36+
"validRegex": "/.{1,}/"
37+
},
38+
{
39+
"id": "$$cap_rabbitmq_password",
40+
"label": "RabbitMQ Default Password",
41+
"description": "",
42+
"validRegex": "/.{1,}/"
43+
}
44+
]
45+
46+
}

0 commit comments

Comments
 (0)