summaryrefslogtreecommitdiffhomepage
path: root/public/v2/apps/couchdb.json
blob: ecea503ed7a46ea7a11b1e6e605b4ce080bf8e96 (plain)
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
{
    "captainVersion": "2",
    "documentation": "Taken from https://hub.docker.com/_/couchdb/",
    "description": "Apache CouchDB is an open-source document-oriented NoSQL database, implemented in Erlang",
    "displayName": "CouchDB",
    "dockerCompose": {
        "version": "3.3",
        "services": {
            "$$cap_appname": {
                "image": "couchdb:$$cap_couchdb_version",
                "containerHttpPort": "5984",
                "volumes": [
                    "$$cap_appname-db-data:/opt/couchdb/data",
                    "$$cap_appname-db-etc:/opt/couchdb/etc"
                ],
                "restart": "always",
                "environment": {
                    "COUCHDB_USER": "$$cap_couchdb_user",
                    "COUCHDB_PASSWORD": "$$cap_couchdb_password"
                }
            }
        }
    },
    "instructions": {
        "start": "CouchDB is a database that uses JSON for documents, an HTTP API, & JavaScript/declarative indexing.\n\n After installation on CapRover, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 5984 to other CapRover apps.\n\nEnter your CouchDB Configuration parameters and click on next. It will take about a minute for the process to finish.",
        "end": "CouchDB is deployed and available as $$cap_appname at port 5984 to other apps"
    },
    "variables": [{
            "id": "$$cap_couchdb_version",
            "label": "CouchDB Version Tag",
            "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/library/couchdb/tags/",
            "defaultValue": "2",
            "validRegex": "/^([^\\s^\\/])+$/"
        },
        {
            "id": "$$cap_couchdb_user",
            "label": "CouchDB Username",
            "defaultValue": "mainuser",
            "validRegex": "/^([a-zA-Z0-9_])+$/"
        },
        {
            "id": "$$cap_couchdb_password",
            "label": "CouchDB Password",
            "defaultValue": "",
            "validRegex": "/.{1,}/"
        }
    ]

}