Update MongoDB image to 3.2
This commit is contained in:
parent
aea7d97a21
commit
9ae372829a
18
templates/MongoDB/1/README.md
Normal file
18
templates/MongoDB/1/README.md
Normal file
@ -0,0 +1,18 @@
|
||||
# MongoDB
|
||||
|
||||
|
||||
### Info:
|
||||
|
||||
This template creates MongoDB replica set on top of Rancher. Replica set size starts with 3 MongoDB instances, the replica set has the ability to scale up automatically when adding new instances.
|
||||
|
||||
|
||||
### Usage:
|
||||
|
||||
Select MongoDB from catalog.
|
||||
|
||||
Enter the name of the replica set.
|
||||
|
||||
Click deploy.
|
||||
|
||||
MongoDB can now be accessed over the Rancher network.
|
||||
|
35
templates/MongoDB/1/docker-compose.yml
Normal file
35
templates/MongoDB/1/docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
||||
mongo-cluster:
|
||||
restart: always
|
||||
environment:
|
||||
MONGO_SERVICE_NAME: mongo-cluster
|
||||
tty: true
|
||||
entrypoint: /opt/rancher/bin/entrypoint.sh
|
||||
command:
|
||||
- --replSet
|
||||
- "${replset_name}"
|
||||
image: mongo:3.2
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
io.rancher.sidekicks: mongo-base, mongo-datavolume
|
||||
volumes_from:
|
||||
- mongo-datavolume
|
||||
- mongo-base
|
||||
mongo-base:
|
||||
restart: always
|
||||
net: none
|
||||
tty: true
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
io.rancher.container.start_once: true
|
||||
image: rancher/mongodb-conf:v0.1.0
|
||||
stdin_open: true
|
||||
entrypoint: /bin/true
|
||||
mongo-datavolume:
|
||||
net: none
|
||||
labels:
|
||||
io.rancher.container.hostname_override: container_name
|
||||
io.rancher.container.start_once: true
|
||||
volumes:
|
||||
- /data/db
|
||||
entrypoint: /bin/true
|
||||
image: busybox
|
19
templates/MongoDB/1/rancher-compose.yml
Normal file
19
templates/MongoDB/1/rancher-compose.yml
Normal file
@ -0,0 +1,19 @@
|
||||
.catalog:
|
||||
name: "MongoDB"
|
||||
version: "3.0.1-rancher1"
|
||||
description: "MongoDB Replica Set"
|
||||
uuid: mongodb-1
|
||||
minimum_rancher_version: v0.46.0
|
||||
questions:
|
||||
- variable: replset_name
|
||||
description: "Name of the MongoDB replicaSet"
|
||||
label: "ReplicaSet Name"
|
||||
type: "string"
|
||||
required: true
|
||||
default: "rs0"
|
||||
mongo-cluster:
|
||||
scale: 3
|
||||
metadata:
|
||||
mongo:
|
||||
yml:
|
||||
replset.name: "${replset_name}"
|
@ -1,5 +1,5 @@
|
||||
name: MongoDB
|
||||
description: |
|
||||
MongoDB Replica Set.
|
||||
version: 3.0.0-rancher1
|
||||
version: 3.0.1-rancher1
|
||||
category: Database
|
||||
|
Loading…
x
Reference in New Issue
Block a user