2023-04-05 13:51:32 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
elasticsearch:
|
2023-04-12 03:45:36 +00:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0 # https://www.docker.elastic.co/r/elasticsearch/elasticsearch
|
2023-04-05 13:51:32 +00:00
|
|
|
environment:
|
|
|
|
- discovery.type=single-node
|
2023-04-12 03:45:36 +00:00
|
|
|
- xpack.security.enabled=false # security has been disabled, so no login or password is required.
|
2023-04-05 13:51:32 +00:00
|
|
|
- xpack.security.http.ssl.enabled=false
|
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD-SHELL", "curl --silent --fail http://localhost:9200/_cluster/health || exit 1" ]
|
2023-04-12 03:45:36 +00:00
|
|
|
interval: 10s
|
|
|
|
retries: 60
|
2023-04-05 13:51:32 +00:00
|
|
|
|
|
|
|
kibana:
|
|
|
|
image: docker.elastic.co/kibana/kibana:8.7.0
|
|
|
|
environment:
|
|
|
|
- ELASTICSEARCH_URL=http://elasticsearch:9200
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
healthcheck:
|
|
|
|
test: [ "CMD-SHELL", "curl --silent --fail http://localhost:5601/login || exit 1" ]
|
|
|
|
interval: 10s
|
|
|
|
retries: 60
|