Levelrail
Skip to content

Self-host Elasticsearch with Docker ​

A distributed, RESTful search and analytics engine for full-text search and log analytics.

This page describes the Levelrail template for Elasticsearch (Infrastructure). It deploys the services below as one Docker Compose app on your own server.

Project site: https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html.

Recommended memory: about 1024 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
elasticsearchdocker.elastic.co/elasticsearch/elasticsearch:8.19.229200
elasticsearch_data -> /usr/share/elasticsearch/data

Environment variables ​

ServiceVariableValue
elasticsearchES_JAVA_OPTSPreset in the template
elasticsearchdiscovery.typePreset in the template
elasticsearchxpack.security.enabledPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Elasticsearch with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Elasticsearch. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy elasticsearch --name my-elasticsearch

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Infrastructure templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.