From d90794a4f0b8ae6540fff964053776bf8278570f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 26 Sep 2017 11:27:45 +0200 Subject: [PATCH] Put elasticproxy in between Kibana and ElasticSearch This blocks any data-changing HTTP request from reaching ElasticSearch. --- docker/docker-compose.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f91ef18..6b39f62 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -30,13 +30,20 @@ elastic: - "127.0.0.1:9200:9200" environment: ES_JAVA_OPTS: "-Xms256m -Xmx256m" +elasticproxy: + image: armadillica/elasticproxy:latest + container_name: elasticproxy + restart: always + command: /elasticproxy -elastic http://elastic:9200/ -verbose + links: + - elastic kibana: image: armadillica/kibana:latest container_name: kibana restart: always environment: SERVER_NAME: "stats.cloud.blender.org" - ELASTICSEARCH_URL: http://elastic:9200 + ELASTICSEARCH_URL: http://elasticproxy:9200 XPACK_SECURITY_ENABLED: 'false' XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED: 'false' VIRTUAL_HOST: http://stats.cloud.blender.org/*,https://stats.cloud.blender.org/*,http://stats.blender-cloud/*,https://stats.blender-cloud/* @@ -46,7 +53,7 @@ kibana: # See https://github.com/elastic/kibana/issues/5170#issuecomment-163042525 NODE_OPTIONS: "--max-old-space-size=200" links: - - elastic + - elasticproxy blender_cloud: image: armadillica/blender_cloud:latest container_name: blender_cloud