Skip to content

Instantly share code, notes, and snippets.

@preslavmihaylov
Created May 16, 2020 05:54
Show Gist options
  • Save preslavmihaylov/72187fd548cd7579be5147de454459d1 to your computer and use it in GitHub Desktop.
Save preslavmihaylov/72187fd548cd7579be5147de454459d1 to your computer and use it in GitHub Desktop.
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
healthcheck:
test: ["CMD", "curl", "-s", "-f", "http://localhost:9200/_cat/health"]
interval: 3s
timeout: 3s
retries: 10
ports:
- 9200:9200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment