diff --git a/public/svgs/elasticsearch.svg b/public/svgs/elasticsearch.svg new file mode 100644 index 000000000..bfc5bfb6a --- /dev/null +++ b/public/svgs/elasticsearch.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/templates/compose/elasticsearch.yaml b/templates/compose/elasticsearch.yaml new file mode 100644 index 000000000..882d529b9 --- /dev/null +++ b/templates/compose/elasticsearch.yaml @@ -0,0 +1,27 @@ +# documentation: https://www.elastic.co/products/elasticsearch +# slogan: Elasticsearch is free and Open Source, Distributed, RESTful Search Engine. +# tags: search,engine,fulltext,full,text,elasticsearch +# logo: svgs/elasticsearch.svg +# port: 9200 + +services: + elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch-wolfi:8.19.0 + environment: + - SERVICE_FQDN_ELASTICSEARCH_9200 + - ELASTIC_PASSWORD=${SERVICE_PASSWORD_ELASTICSEARCH} + - ES_JAVA_OPTS=-Xms512m -Xmx512m # memory set to 512MB + - discovery.type=single-node + - bootstrap.memory_lock=true + - xpack.security.http.ssl.enabled=false # Coolify handles SSL + volumes: + - elasticsearch-data:/usr/share/elasticsearch/data + healthcheck: + test: + [ + "CMD-SHELL", + "curl --user elastic:${SERVICE_PASSWORD_ELASTICSEARCH} --silent --fail http://localhost:9200/_cluster/health" + ] + interval: 10s + timeout: 10s + retries: 24