From 0c1eeef536866a4c3f88d0ccffa7d4b23f35d431 Mon Sep 17 00:00:00 2001 From: Dominic Werner Date: Thu, 11 May 2017 15:47:54 +0200 Subject: [PATCH] disable network on sidekicks, use minimal volume image for storage --- templates/es-cluster/0/docker-compose.yml.tpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/es-cluster/0/docker-compose.yml.tpl b/templates/es-cluster/0/docker-compose.yml.tpl index d07c69c..f9a9918 100644 --- a/templates/es-cluster/0/docker-compose.yml.tpl +++ b/templates/es-cluster/0/docker-compose.yml.tpl @@ -104,8 +104,12 @@ services: es-storage: labels: io.rancher.container.start_once: true - image: docker.elastic.co/elasticsearch/elasticsearch:5.4.0 - entrypoint: /bin/true + network_mode: none + image: rawmind/alpine-volume:0.0.2-1 + environment: + - SERVICE_UID=1000 + - SERVICE_GID=1000 + - SERVICE_VOLUME=/usr/share/elasticsearch/data volumes: - es-storage-volume:/usr/share/elasticsearch/data @@ -113,6 +117,7 @@ services: es-sysctl: labels: io.rancher.container.start_once: true + network_mode: none image: rawmind/alpine-sysctl:0.1 privileged: true environment: