2023-10-03 10:39:33 -04:00
|
|
|
services:
|
|
|
|
elasticsearch:
|
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:8.7.0
|
|
|
|
container_name: es-test
|
|
|
|
ports:
|
|
|
|
- 9200:9200
|
|
|
|
- 9300:9300
|
|
|
|
environment:
|
2023-12-05 15:55:19 -05:00
|
|
|
- xpack.security.enabled=true
|
2023-10-03 10:39:33 -04:00
|
|
|
- discovery.type=single-node
|
2023-12-20 01:26:58 +00:00
|
|
|
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
|
|
|
|
- ELASTIC_USER=${ELASTIC_USER}
|
2023-10-03 10:39:33 -04:00
|
|
|
healthcheck:
|
2023-12-20 01:26:58 +00:00
|
|
|
test: ["CMD-SHELL", "curl --silent --fail -u ${ELASTIC_USER}:${ELASTIC_PASSWORD} localhost:9200/_cluster/health || exit 1"]
|
2023-12-05 15:55:19 -05:00
|
|
|
interval: 10s
|
2023-10-03 10:39:33 -04:00
|
|
|
timeout: 30s
|
|
|
|
retries: 3
|