Add new image for mongodb replica set configuration (#442)

This commit is contained in:
Hussein Galal 2017-03-04 06:35:28 +02:00 committed by Bill Maxwell
parent bd99e979e8
commit 3eed8090d3
6 changed files with 24 additions and 9 deletions

View File

@ -2,7 +2,7 @@ mongo-cluster:
restart: always
environment:
MONGO_SERVICE_NAME: mongo-cluster
tty: true
CATTLE_SCRIPT_DEBUG: ${debug}
entrypoint: /opt/rancher/bin/entrypoint.sh
command:
- --replSet
@ -17,11 +17,10 @@ mongo-cluster:
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
image: rancher/mongodb-conf:v0.1.1
stdin_open: true
entrypoint: /bin/true
mongo-datavolume:

View File

@ -11,6 +11,12 @@
type: "string"
required: true
default: "rs0"
- variable: debug
description: "Enable Debug log for Mongo containers"
label: "Debug"
type: "string"
required: false
default: ""
mongo-cluster:
scale: 3
retain_ip: true

View File

@ -2,7 +2,7 @@ mongo-cluster:
restart: always
environment:
MONGO_SERVICE_NAME: mongo-cluster
tty: true
CATTLE_SCRIPT_DEBUG: ${debug}
entrypoint: /opt/rancher/bin/entrypoint.sh
command:
- --replSet
@ -17,11 +17,10 @@ mongo-cluster:
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
image: rancher/mongodb-conf:v0.1.1
stdin_open: true
entrypoint: /bin/true
mongo-datavolume:

View File

@ -11,6 +11,12 @@
type: "string"
required: true
default: "rs0"
- variable: debug
description: "Enable Debug log for Mongo containers"
label: "Debug"
type: "string"
required: false
default: ""
mongo-cluster:
scale: 3
retain_ip: true

View File

@ -2,7 +2,7 @@ mongo-cluster:
restart: always
environment:
MONGO_SERVICE_NAME: mongo-cluster
tty: true
CATTLE_SCRIPT_DEBUG: ${debug}
entrypoint: /opt/rancher/bin/entrypoint.sh
command:
- --replSet
@ -18,12 +18,11 @@ mongo-cluster:
mongo-base:
restart: always
net: none
tty: true
labels:
io.rancher.scheduler.affinity:host_label: ${host_label}
io.rancher.container.hostname_override: container_name
io.rancher.container.start_once: true
image: rancher/mongodb-conf:v0.1.0
image: rancher/mongodb-conf:v0.1.1
stdin_open: true
entrypoint: /bin/true
mongo-datavolume:

View File

@ -18,6 +18,12 @@
Example: 'database'
required: false
type: "string"
- variable: debug
description: "Enable Debug log for Mongo containers"
label: "Debug"
type: "string"
required: false
default: ""
mongo-cluster:
scale: 3
retain_ip: true