Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

998 B
Raw Blame
# 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
# category: search
# logo: svgs/elasticsearch.svg
# port: 9200

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch-wolfi:8.19.0
    environment:
      - SERVICE_URL_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