---
title: "Deploy Elasticsearch"
description: "Distributed search and analytics engine, single node with a password"
category: "Analytics"
url: https://railway.com/deploy/elasticsearch-2
---

# Deploy Elasticsearch

Distributed search and analytics engine, single node with a password

**[Deploy Elasticsearch on Railway](https://railway.com/template/elasticsearch-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/elasticsearch-2/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Analytics
- **Total deploys:** 1

## Template content

### Elasticsearch

- **Image:** elasticsearch:8.19.23
- **Start command:** `sh -c 'chown -R 1000:0 /usr/share/elasticsearch/data; export ES_JAVA_OPTS="-Xms768m -Xmx768m"; exec setpriv --reuid=1000 --regid=0 --clear-groups /usr/local/bin/docker-entrypoint.sh eswrapper -Ediscovery.type=single-node -Expack.security.http.ssl.enabled=false -Expack.security.authc.anonymous.roles=monitoring_user -Ecluster.routing.allocation.disk.threshold_enabled=false'`
- **Public domain:** Yes

## Documentation

# Deploy and Host Elasticsearch on Railway

[Elasticsearch](https://github.com/elastic/elasticsearch) is a distributed search and analytics engine for full-text search, logs and vector search.

## About Hosting Elasticsearch

This template runs the official `elasticsearch:8.19.23` image as a single node with a persistent volume at the data directory and a 768 MB heap sized for Railway. Security is on: the `elastic` user has a random `ELASTIC_PASSWORD` generated into the service variables (read it in the Variables tab). Anonymous visitors can only read basic cluster info at `/`; everything else needs the password, for example `curl -u elastic: https:///_cluster/health`.

## Common Use Cases

- Full-text search for apps and sites
- Log and event search
- Vector and hybrid search for AI apps

## Dependencies for Elasticsearch Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [Elasticsearch on GitHub](https://github.com/elastic/elasticsearch)
- [Docker image](https://hub.docker.com/_/elasticsearch)

## Why Deploy Elasticsearch on Railway?

Railway gives you a public HTTPS URL, persistent storage where needed and automatic restarts with no server to maintain. Send the generated password with every API request.


## Similar templates

- [Plausible WordPress](https://railway.com/deploy/deploy-plausible-for-wordpress-sites) — Cookie-free WordPress stats from your own Plausible
- [Typesense Multilingual](https://railway.com/deploy/deploy-typesense-multilingual-search) — Locale-aware multilingual search with Typesense
- [Formbricks](https://railway.com/deploy/formbricks-surveys) — Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Open this page in a browser: https://railway.com/deploy/elasticsearch-2
