66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
version: "2"
|
|
|
|
networks:
|
|
elastic:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
elasticsearch:
|
|
driver: local
|
|
|
|
services:
|
|
elasticsearch:
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0
|
|
restart: unless-stopped
|
|
environment:
|
|
- "discovery.type=single-node"
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
- "xpack.security.enabled=true"
|
|
- "xpack.security.authc.api_key.enabled=true"
|
|
- "ELASTIC_PASSWORD=givepasswd"
|
|
ulimits:
|
|
memlock:
|
|
soft: -1
|
|
hard: -1
|
|
volumes:
|
|
- elasticsearch:/usr/share/elasticsearch/data
|
|
ports:
|
|
- 0.0.0.0:9200:9200
|
|
networks:
|
|
- elastic
|
|
|
|
ent-search:
|
|
image: docker.elastic.co/enterprise-search/enterprise-search:7.15.0
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- "elasticsearch"
|
|
environment:
|
|
- "JAVA_OPTS=-Xms512m -Xmx512m"
|
|
- "ENT_SEARCH_DEFAULT_PASSWORD=givepasswd"
|
|
- "elasticsearch.username=elastic"
|
|
- "elasticsearch.password=<GIVE-YOUR_PWD>"
|
|
- "elasticsearch.host=http://elasticsearch:9200"
|
|
- "allow_es_settings_modification=true"
|
|
- "secret_management.encryption_keys=[4a2cd3f81d39bf28738c10db0ca782095ffac07279561809eecc722e0c20eb09]"
|
|
- "elasticsearch.startup_retry.interval=15"
|
|
ports:
|
|
- 0.0.0.0:3002:3002
|
|
networks:
|
|
- elastic
|
|
|
|
kibana:
|
|
image: docker.elastic.co/kibana/kibana:7.15.0
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- "elasticsearch"
|
|
- "ent-search"
|
|
ports:
|
|
- 0.0.0.0:5601:5601
|
|
environment:
|
|
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
|
|
ENTERPRISESEARCH_HOST: http://ent-search:3002
|
|
ELASTICSEARCH_USERNAME: elastic
|
|
ELASTICSEARCH_PASSWORD: <GIVE-YOUR_PWD>
|
|
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: "X5rtEXBA3Js1sNMu7VpY4QKIEBpjwzkb231"
|
|
networks:
|
|
- elastic
|