diff --git a/templates/MongoDB/0/docker-compose.yml b/templates/MongoDB/0/docker-compose.yml index 2a4724a..75a85f6 100644 --- a/templates/MongoDB/0/docker-compose.yml +++ b/templates/MongoDB/0/docker-compose.yml @@ -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: diff --git a/templates/MongoDB/0/rancher-compose.yml b/templates/MongoDB/0/rancher-compose.yml index cc3b566..59e47bb 100644 --- a/templates/MongoDB/0/rancher-compose.yml +++ b/templates/MongoDB/0/rancher-compose.yml @@ -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 diff --git a/templates/MongoDB/1/docker-compose.yml b/templates/MongoDB/1/docker-compose.yml index bd37783..de669b7 100644 --- a/templates/MongoDB/1/docker-compose.yml +++ b/templates/MongoDB/1/docker-compose.yml @@ -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: diff --git a/templates/MongoDB/1/rancher-compose.yml b/templates/MongoDB/1/rancher-compose.yml index d5605b2..0022167 100644 --- a/templates/MongoDB/1/rancher-compose.yml +++ b/templates/MongoDB/1/rancher-compose.yml @@ -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 diff --git a/templates/MongoDB/2/docker-compose.yml b/templates/MongoDB/2/docker-compose.yml index 2a821e5..3f991d4 100644 --- a/templates/MongoDB/2/docker-compose.yml +++ b/templates/MongoDB/2/docker-compose.yml @@ -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: diff --git a/templates/MongoDB/2/rancher-compose.yml b/templates/MongoDB/2/rancher-compose.yml index 53a2630..58c3259 100644 --- a/templates/MongoDB/2/rancher-compose.yml +++ b/templates/MongoDB/2/rancher-compose.yml @@ -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