feat(stacks): add CockroachDB stack template

This commit is contained in:
Anthony Lapenna
2017-11-02 12:00:40 +01:00
parent 0602a3a26e
commit 010036f4f8
2 changed files with 28 additions and 0 deletions

View File

@@ -10,5 +10,17 @@
"url": "https://github.com/openfaas/faas",
"stackfile": "docker-compose.yml"
}
},
{
"title": "CockroachDB",
"description": "CockroachDB cluster",
"note": "Deploys an insecure CockroachDB cluster, please refer to <a href=\"https://www.cockroachlabs.com/docs/stable/orchestrate-cockroachdb-with-docker-swarm.html\" target=\"_blank\">CockroachDB documentation</a> for production deployments.",
"categories": ["database"],
"platform": "linux",
"logo": "https://cloudinovasi.id/assets/img/logos/cockroachdb.png",
"repository": {
"url": "https://github.com/portainer/templates",
"stackfile": "stacks/cockroachdb/docker-compose.yml"
}
}
]

View File

@@ -0,0 +1,16 @@
version: '3'
services:
roach1:
image: cockroachdb/cockroach:latest
command: "start --insecure"
deploy:
replicas: 1
ports:
- "8080"
roachN:
image: cockroachdb/cockroach:latest
command: "start --insecure --join=roach1,roachN"
deploy:
mode: global