Search service
Services/Elasticsearch

Elasticsearch service

Self-hosted Elasticsearch search service for indexing application data, full-text queries, and search analytics.

Use it as a reusable, versioned service inside custom or predefined stacks so teams can keep the runtime and operational model consistent.

On Wodby

How Elasticsearch runs on Wodby

What Wodby sets up for this Elasticsearch service. It runs the official Elastic image as a single node, configured through environment variables set by the manifest.

How applications reach it

  • URL: http://<app service name>:9200. Security is on (xpack.security.enabled), TLS on the HTTP layer is off: use plain http:// with HTTP Basic authentication.
  • User elastic, the built-in superuser. Its password is generated by Wodby (token password) and is in ELASTIC_PASSWORD inside this container.
  • A service linked to this one receives host, port and the password in variables named by the linking service; read them in code and do not copy the password into the repository.
  • Port 9200 is private: no public route is created. Port 9300 is the transport port and is not for applications.

What is configured

  • discovery.type is single-node; the service is not scalable. An index with replicas stays yellow because there is no second node: create indices with zero replicas.
  • The cluster name is built from the application and environment names.
  • node.store.allow_mmap is false.
  • The JVM heap comes from ES_JAVA_OPTS (the manifest sets a fixed heap). The container memory limit must leave room above the heap.
  • A second password (token kibana_password) is generated for the built-in kibana_system user. A start-up hook sets it through the security API once the node answers. A linked Kibana service connects with that user; do not use kibana_system from applications and do not give Kibana the elastic password.

Changing configuration

Elasticsearch settings are environment variables on this service, named exactly like the setting (for example cluster.name). Do not mount an elasticsearch.yml. Turning security off or HTTP TLS on changes how every linked service must connect, Kibana included.

Data

Indices are in /usr/share/elasticsearch/data on the data volume. The manifest declares no backups, imports or actions; snapshots need a repository configured in Elasticsearch itself.

Check the result

From this service's container:

  • curl -s -u "elastic:$ELASTIC_PASSWORD" http://localhost:9200/_cluster/health?pretty
  • curl -s -u "elastic:$ELASTIC_PASSWORD" http://localhost:9200/_cat/indices?v

Overview

Technical profile and packaging

This page shows how Elasticsearch is packaged and versioned as a Wodby service, what it exposes at runtime, and which source artifacts it builds on.

Service type

Search service

Versions

9.5

Ports and protocols

9200/HTTP, 9300/TCP

Labels

elasticsearch, search

Persistent volumes

Elasticsearch data

Stacks

Use it inside ready-made stacks or your own

These public stacks already include Elasticsearch as part of their default service model. You can start there and customize the stack, or compose your own stack around the same building block.

Runtime wiring

Reuse connectivity, storage, and runtime defaults

This service can expose ports, connect to other services, attach persistent storage, and define runtime defaults that become reusable inside stacks rather than being rebuilt case by case.

Endpoints

9200/HTTP, 9300/TCP

Technical domains

HTTP endpoints from this service can use technical domains with auto-renewed TLS certificates on Wodby.

Volumes

Elasticsearch data