Special Offers: Up to 75% OFF on Hostinger & High-RAM Contabo Cloud VPS available this month.Compare Plans

How to Deploy Meilisearch on Ubuntu VPS: Lightning-Fast Instant Search for Apps & WordPress

Marcus Vance
Marcus VanceFull-Stack Cloud Engineer
November 20, 2026
•
15 min read
•
4.9 / 5.0
Transparency Notice: This article contains affiliate links to hosting providers like Hostinger and Contabo. If you purchase through our links, we may earn a commission at zero extra cost to you. We only recommend products we personally benchmark and test. Read full disclosure.
How to Deploy Meilisearch on Ubuntu VPS: Lightning-Fast Instant Search for Apps & WordPress

Hostinger vs. Contabo: Full Specifications Breakdown

Data verified from our lab benchmarks • Updated for 2026

Feature / Metric
HostingerEditor's Choice UI
ContaboMax RAM Value
Starting Price$2.99 / month (Web) | $4.99 / mo (VPS)$5.50 / month (Cloud VPS S)
vCPU Cores1 to 8 vCPU (Dedicated resources)4 to 12 vCPU (High Core Count)
RAM Memory4 GB to 32 GB6 GB to 64 GB (Gigantic RAM)
Storage Technology50 GB – 400 GB NVMe SSD50 GB NVMe or 300 GB SSD
Traffic / Bandwidth4 TB to 32 TB32 TB Outgoing + Unlimited In
Control Panel & UIhPanel (Ultra Modern & Easy)cPanel, Plesk, Webmin, or CLI
Customer Support24/7 Live Chat & AI Support (Multi-lingual)Email Ticket Support (German Business Hours)
Best ForBloggers, WordPress Sites & Devs wanting easy UIHeavy Database, Docker, Game Servers & SysAdmins
Money-Back Guarantee30-Day Money-Back Guarantee14-Day EU Statutory Cancellation
Official LinksVisit HostingerVisit Contabo
Quick Answer & Key Takeaways
Updated November 20, 2026 • Lab Score 4.9/5.0

Replace sluggish MySQL LIKE queries and expensive Algolia subscriptions. Deploy open-source Meilisearch on a Linux VPS for typo-tolerant sub-50ms search.

  • Sub-50ms typo-tolerant search as you type, written in ultra-fast Rust
  • Seamless integration with WordPress via the official Meilisearch plugin, Next.js, and Laravel Scout
  • Zero SaaS per-search billing fees compared to Algolia's punishing usage costs

Default database search in relational systems like MySQL or PostgreSQL relies on clumsy WHERE title LIKE '%query%' statements. On a catalog with 50,000 articles or WooCommerce products, these queries trigger full table scans, spike CPU utilization to 100%, and fail completely if a customer mistypes a single letter (e.g., searching for "iPnone" instead of "iPhone").

Commercial SaaS search engines like Algolia offer fantastic typo-tolerance and instant results, but their billing scales ruthlessly: exceeding their free tier costs $0.50 per 1,000 search requests. For an active website doing 500,000 monthly searches, Algolia bills hundreds of dollars every month.

Meilisearch is an open-source, blazingly fast full-text search engine written in Rust. It offers sub-50ms instant search responses, built-in typo tolerance, faceted filtering, and synonym support. Self-hosting Meilisearch on a Contabo Cloud VPS 1 or Hostinger KVM VPS eliminates SaaS bills entirely.

Prerequisites on Ubuntu 24.04 VPS

SSH into your server and install Docker:

ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y
apt install -y curl ufw nginx certbot python3-certbot-nginx
curl -fsSL https://get.docker.com | sh
systemctl enable --now docker

Step 1: Setting Up the Meilisearch Directory

Create a dedicated folder for Meilisearch storage:

mkdir -p /opt/meilisearch/data && cd /opt/meilisearch
nano docker-compose.yml

Step 2: Docker Compose Configuration

Create a secure compose stack with a master API key:

services:
  meilisearch:
    image: getmeili/meilisearch:v1.7
    container_name: meilisearch
    restart: always
    environment:
      - MEILI_ENV=production
      - MEILI_MASTER_KEY=SuperSecretMasterKeyAtLeast16BytesLong!
      - MEILI_NO_ANALYTICS=true
    ports:
      - "127.0.0.1:7700:7700"
    volumes:
      - ./data:/meili_data

Launch the Meilisearch service:

docker compose up -d
docker compose ps

Step 3: Nginx SSL Reverse Proxy

Expose Meilisearch over HTTPS with Nginx:

cat << 'EOF' > /etc/nginx/sites-available/search.conf
server {
    server_name search.yourdomain.com;

    client_max_body_size 100M;

    location / {
        proxy_pass http://127.0.0.1:7700;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
EOF

ln -s /etc/nginx/sites-available/search.conf /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
certbot --nginx -d search.yourdomain.com --non-interactive --agree-tos -m admin@yourdomain.com

Step 4: Connecting to WordPress or Next.js

For WordPress:

  1. Install the official Meilisearch for WordPress plugin.
  2. Under Settings > Meilisearch, set your Server URL to https://search.yourdomain.com.
  3. Paste your Master API key (or create a dedicated search/write key via API).
  4. Click Index Posts. Meilisearch will ingest all posts, pages, and custom post types in seconds.

For Next.js / React:

Use Meilisearch's instantsearch.js adapter to build instant autocomplete search bars:

import { instantMeiliSearch } from '@meilisearch/instant-meilisearch';
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch';

const searchClient = instantMeiliSearch(
  'https://search.yourdomain.com',
  'YOUR_PUBLIC_SEARCH_KEY'
);

Meilisearch API Key Security Best Practices

Key Type Permissions Where to Use
Master Key (MEILI_MASTER_KEY) Full admin & key creation Server-side CLI only (Never expose)
Default Admin API Key Index documents & settings Backend WordPress / Laravel sync
Default Search API Key Read-only /search Frontend Next.js / React browser

Frequently Asked Questions (FAQ)

How do I keep Meilisearch synced when a WordPress post or WooCommerce price updates?

The Meilisearch WordPress plugin hooks into save_post automatically, re-indexing updated posts or product stock in under 50 ms.

Can Meilisearch run semantic AI vector search too?

Yes! Meilisearch v1.10+ supports hybrid keyword + OpenAI/HuggingFace vector embeddings natively inside the same index.

Summary

Deploying Meilisearch on your Linux VPS transforms user search into an instantaneous, typo-tolerant experience that boosts engagement and e-commerce conversions with zero SaaS overhead.

Video Walkthrough & Official References

How to Use Docker Compose to Manage Containers on Linux VPS • syncbricks

Watch on YouTube

Editorial Verdict: Pros & Cons

What We Love (Pros)

  • Sub-50ms typo-tolerant search as you type, written in ultra-fast Rust
  • Seamless integration with WordPress via the official Meilisearch plugin, Next.js, and Laravel Scout
  • Zero SaaS per-search billing fees compared to Algolia's punishing usage costs

Drawbacks (Cons)

  • In-memory indexing requires sufficient server RAM proportional to your document catalog size
Marcus Vance

Written by Marcus Vance

Full-Stack Cloud Engineer

Alex and the ServerCraft engineering lab run routine benchmarks on over 25 web hosting providers, maintaining strict objectivity and reproducibility.

Recommended Next Reads