Add new image for mongodb replica set configuration (#442)
This commit is contained in:
parent
bd99e979e8
commit
3eed8090d3
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user