diff --git a/templates/rethinkdb/0/README.md b/templates/rethinkdb/0/README.md new file mode 100644 index 0000000..ddc7f05 --- /dev/null +++ b/templates/rethinkdb/0/README.md @@ -0,0 +1,17 @@ +# RethinkDB Cluster +RethinkDB is the first open-source, scalable JSON database built from the ground up for the realtime web. It inverts the traditional database architecture by exposing an exciting new access model – instead of polling for changes, the developer can tell RethinkDB to continuously push updated query results to applications in realtime. RethinkDB’s realtime push architecture dramatically reduces the time and effort necessary to build scalable realtime apps. + + +**This Template creates 2 services:** +- **rethinkdb:** This is the scalable database service. +- **rethinkdb-proxy:** This is the proxy service, the query-router and admin panel. (queries are sent to this service) + + +### Repository +https://github.com/xkodiak/rancher-rethinkdb + +### Variables +- **Proxy Web Port:** admin panel port (default: 8080) +- **Proxy Query Port:** query port (default: 28015) +- **Volume Driver:** local, rancher-nfs, ... (default: local) + diff --git a/templates/rethinkdb/0/docker-compose.yml b/templates/rethinkdb/0/docker-compose.yml new file mode 100644 index 0000000..6b69a23 --- /dev/null +++ b/templates/rethinkdb/0/docker-compose.yml @@ -0,0 +1,23 @@ +version: '2' +volumes: + rethinkdb-data: + driver: '${rethinkdb_volume_driver}' + per_container: true +services: + rethinkdb: + image: xkodiak/rancher-rethinkdb:2.3.5 + volumes: + - rethinkdb-data:/data + labels: + io.rancher.scheduler.affinity:container_label_soft_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name} + io.rancher.container.hostname_override: container_name + rethinkdb-proxy: + image: xkodiak/rancher-rethinkdb:2.3.5 + entrypoint: /proxy.sh + links: + - rethinkdb:db + ports: + - ${rethinkdb_proxy_webport}:8080/tcp + - ${rethinkdb_proxy_queryport}:28015/tcp + depends_on: + - rethinkdb diff --git a/templates/rethinkdb/0/rancher-compose.yml b/templates/rethinkdb/0/rancher-compose.yml new file mode 100644 index 0000000..d2524bf --- /dev/null +++ b/templates/rethinkdb/0/rancher-compose.yml @@ -0,0 +1,34 @@ +.catalog: + name: "RethinkDB" + version: "2.3.5" + description: "(Experimental) NoSQL-Database" + uuid: rethinkdb-0 + questions: + - variable: "rethinkdb_proxy_webport" + description: "" + label: "Proxy Web Port (Admin Panel):" + required: true + type: "int" + default: 8080 + - variable: "rethinkdb_proxy_queryport" + description: "" + label: "Proxy Query Port:" + required: true + type: "int" + default: 28015 + - variable: "rethinkdb_volume_driver" + description: "" + label: "Volume Driver:" + required: true + type: "string" + default: "local" + + +version: '2' +services: + rethinkdb: + scale: 1 + start_on_create: true + rethinkdb-proxy: + scale: 1 + start_on_create: true diff --git a/templates/rethinkdb/catalogIcon-rethinkdb.svg b/templates/rethinkdb/catalogIcon-rethinkdb.svg new file mode 100644 index 0000000..30c8eea --- /dev/null +++ b/templates/rethinkdb/catalogIcon-rethinkdb.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/rethinkdb/config.yml b/templates/rethinkdb/config.yml new file mode 100644 index 0000000..47783fa --- /dev/null +++ b/templates/rethinkdb/config.yml @@ -0,0 +1,5 @@ +name: RethinkDB Cluster +description: | + (Experimental) NoSQL-Database +version: 2.3.5 +category: Databases