Back to all templates
Elasticsearch logo

Elasticsearch

Database2048MB+ RAM

Distributed search and analytics engine (512MB heap for development)

databasesearchanalyticselasticsearch

Deploy Elasticsearch in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Elasticsearch

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Step-by-step deployment guide

Deploy Elasticsearch on a VPS with Server Compass

Use the Elasticsearch template in Server Compass to deploy a secured single-node search and analytics engine on your VPS, then verify cluster health from inside the container.

About 10 minutesBrowser verified
1
Step 1

Open the server Apps tab

Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Server Compass Apps tab before creating an Elasticsearch app
2
Step 2

Choose an app template

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Choosing to deploy an app from a Server Compass template
3
Step 3

Search for Elasticsearch

Use the template picker search to find Elasticsearch in the Server Compass template catalog.

Searching for Elasticsearch in the Server Compass template picker
4
Step 4

Select the Elasticsearch template

Choose the Elasticsearch template. Server Compass fills the secured Elasticsearch container, persistent data volume, HTTP port, transport port, heap settings, and generated elastic password.

Elasticsearch template selected in Server Compass
5
Step 5

Review the Elasticsearch settings

Confirm the app name and compose service. In this run, the app was named elasticsearch-demo and used host port 9200.

Reviewing Elasticsearch project settings and compose services
6
Step 6

Deploy Elasticsearch

Review the generated environment values, keep the elastic password masked, confirm the HTTP and transport ports are available, and click Deploy Now.

Reviewing Elasticsearch environment variables and port before deployment
7
Step 7

Watch the deployment progress

Keep the deployment modal open while Server Compass uploads the compose file, pulls the Elasticsearch image, starts the container, and verifies the stack.

Server Compass deploying the Elasticsearch template on the VPS
8
Step 8

Confirm Elasticsearch is running

After deployment finishes, return to the Apps tab and confirm the Elasticsearch app is marked Running with the database port available.

Elasticsearch template running in the Server Compass Apps tab
9
Step 9

Verify Elasticsearch is reachable

Open the app detail view and verify the running Elasticsearch container. In this tutorial run, the internal cluster health endpoint returned a healthy status without exposing the generated password.

Elasticsearch app detail screen after verifying the deployed database container

After Elasticsearch Opens

  • Store the generated elastic password in a secure password manager.
  • Create application-specific Elasticsearch users and roles before production use.
  • Restrict external access to port 9200 unless remote clients explicitly need it.
  • Configure regular backups for the Elasticsearch data volume before storing production data.
  • Tune heap size and disk watermarks before production workloads.

Verified Result

The Elasticsearch container returned an accepted cluster health status from the internal HTTP endpoint.

Elasticsearch deployment questions

What does the Elasticsearch template deploy?

It deploys a secured single-node Elasticsearch container with a persistent data volume, HTTP port, transport port, generated elastic password, and configured JVM heap.

Which port did the tutorial use?

The tutorial used host port 9200, which maps to Elasticsearch HTTP port 9200. The template also checks the transport port used by Elasticsearch internals.

Why is there no browser verification screenshot?

Elasticsearch is a service API, not a normal browser application. The tutorial verifies it with an authenticated cluster health request inside the running container.

Should this become a blog post?

No. The deployment guide should live on the Elasticsearch template detail page and be linked from the reusable template deployment docs page.

Command Line Setup

Install Elasticsearch Manually

Set up Elasticsearch yourself using Docker Compose and the command line.

1

Establish SSH Connection

Connect to your remote server using SSH. Make sure you have your server credentials ready.

terminal
# Log into your server
ssh root@<your-server-ip>

# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>

First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh

2

Create Project Directory

Set up a directory to store your Docker configuration.

terminal
# Create and navigate to project directory
mkdir -p ~/apps/elasticsearch
cd ~/apps/elasticsearch
3

Configure Docker Compose

Add this configuration to your docker-compose.yml file:

docker-compose.yml
services:
  elasticsearch:
    image: elasticsearch:8.11.0
    ports:
      - "9200:9200"
      - "9300:9300"
    environment:
      - discovery.type=single-node
      - xpack.security.enabled=true
      - ELASTIC_PASSWORD=<your-elastic-password>
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data
    ulimits:
      memlock:
        soft: -1
        hard: -1
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "curl -s -u elastic:<your-elastic-password> http://localhost:9200/_cluster/health | grep -q 'green\\|yellow'"]
      interval: 30s
      timeout: 10s
      retries: 5

volumes:
  elasticsearch_data:
Configuration Options
PORTHTTP API port(default: 9200)
TRANSPORT_PORTTransport port for cluster communication(default: 9300)
ELASTIC_PASSWORDElastic user password
4

Start the Services

Execute the deployment and check the container status.

terminal
# Deploy the application
docker compose up -d

# Check container health
docker compose ps

# Monitor logs
docker compose logs -f --tail=100
5

Allow Incoming Connections

Enable network access by updating your firewall rules.

terminal
# Allow the application port through firewall
sudo ufw allow 9200/tcp
sudo ufw reload

# Access your app at:
# http://your-server-ip:9200
Skip the Terminal

Too complicated? Let Server Compass handle it.

No terminal needed. Deploy Elasticsearch through a visual dashboard with automatic configuration.

  • Intuitive dashboard
  • Deploy in 3 minutes
  • Free SSL included
  • Blue-green deploys
  • Real-time logs
  • Version history
Download Server Compass$29 one-time • Lifetime license

After Deployment

After deploying Elasticsearch with Server Compass, complete these steps to finish setup

1

Test cluster health via API

2

Create indices for your data

3

Set up index templates and mappings

4

Configure ILM policies for data retention

5

Set up monitoring with Kibana

6

For production, upgrade to Elasticsearch Production template

Need help? Check out our documentation for detailed guides.

Elasticsearch FAQ

Common questions about self-hosting Elasticsearch

How do I deploy Elasticsearch with Server Compass?

Simply download Server Compass, connect to your VPS, and select Elasticsearch from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Elasticsearch?

Elasticsearch requires a minimum of 2048MB RAM. We recommend a VPS with at least 4096MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Elasticsearch data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Elasticsearch backup and restore procedures.

How do I update Elasticsearch to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Elasticsearch image will be pulled and deployed with zero downtime.

Is Elasticsearch free to self-host?

Elasticsearch is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Elasticsearch?

Download Server Compass and deploy Elasticsearch to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass