Commit fbac2cd9 authored by testserver's avatar testserver

add es password

parent 122287a2
...@@ -13,11 +13,11 @@ services: ...@@ -13,11 +13,11 @@ services:
read_only: true read_only: true
- "./elasticsearch/data:/usr/share/elasticsearch/data" - "./elasticsearch/data:/usr/share/elasticsearch/data"
ports: ports:
- "$ES_PORT1:9200" - "127.0.0.1:$ES_PORT1:9200"
- "$ES_PORT2:9300" - "127.0.0.1:$ES_PORT2:9300"
environment: environment:
ES_JAVA_OPTS: "-Xmx1024m -Xms1024m" ES_JAVA_OPTS: "-Xmx2048m -Xms2048m"
ELASTIC_PASSWORD: changeme ELASTIC_PASSWORD: Qeus@ge23eM
# Use single node discovery in order to disable production mode and avoid bootstrap checks. # Use single node discovery in order to disable production mode and avoid bootstrap checks.
# see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html # see: https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html
discovery.type: single-node discovery.type: single-node
......
...@@ -9,7 +9,7 @@ cluster.max_shards_per_node: 30000 ...@@ -9,7 +9,7 @@ cluster.max_shards_per_node: 30000
## X-Pack settings ## X-Pack settings
## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html ## see https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-xpack.html
# #
xpack.license.self_generated.type: trial xpack.license.self_generated.type: basic
xpack.monitoring.history.duration: 3d xpack.monitoring.history.duration: 3d
xpack.security.enabled: false xpack.security.enabled: true
xpack.monitoring.collection.enabled: true xpack.monitoring.collection.enabled: true
...@@ -10,6 +10,6 @@ monitoring.ui.container.elasticsearch.enabled: true ...@@ -10,6 +10,6 @@ monitoring.ui.container.elasticsearch.enabled: true
## X-Pack security credentials ## X-Pack security credentials
# #
elasticsearch.username: elastic elasticsearch.username: elastic
elasticsearch.password: changeme elasticsearch.password: Qeus@ge23eM
# i18n.locale: "zh-CN" # i18n.locale: "zh-CN"
...@@ -9,4 +9,4 @@ xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ] ...@@ -9,4 +9,4 @@ xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ]
# #
xpack.monitoring.enabled: true xpack.monitoring.enabled: true
xpack.monitoring.elasticsearch.username: elastic xpack.monitoring.elasticsearch.username: elastic
xpack.monitoring.elasticsearch.password: changeme xpack.monitoring.elasticsearch.password: Qeus@ge23eM
...@@ -127,5 +127,7 @@ output { ...@@ -127,5 +127,7 @@ output {
elasticsearch{ elasticsearch{
index => "%{[env]}-%{[service][program]}-%{[service][version]}-%{[service][name]}-%{+YYYY.MM}-000000" index => "%{[env]}-%{[service][program]}-%{[service][version]}-%{[service][name]}-%{+YYYY.MM}-000000"
hosts => ["elasticsearch:9200"] hosts => ["elasticsearch:9200"]
user => "elastic"
password => "Qeus@ge23eM"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment