Expose elasticsearch ports from docker-compose

Expose both REST port (9200) and node cluster port (9300) to
allow elasticsearch to be reachable from the host in order to
allow ETL spark job to reach it.

Also, decreased required startup memory from 4g to 1g to avoid
out of memory error.

Bug: Issue 9854
Change-Id: Ie995e3b290c922e73bd9b54bae97a6c09d383b9a
diff --git a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala
index f288fab..6e5da17 100644
--- a/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala
+++ b/src/main/scala/com/googlesource/gerrit/plugins/analytics/wizard/AnalyticDashboardSetup.scala
@@ -64,9 +64,13 @@
        |    networks:
        |      - ek
        |    environment:
-       |      - ES_JAVA_OPTS=-Xmx4g -Xms4g
+       |      - ES_JAVA_OPTS=-Xmx1g -Xms1g
        |      - http.host=0.0.0.0
-       |
+       |      - network.host=_site_
+       |      - http.publish_host=_site_
+       |    ports:
+       |      - "9200:9200"
+       |      - "9300:9300"
        |networks:
        |  ek:
        |    driver: bridge