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 Cores | 1 to 8 vCPU (Dedicated resources) | 4 to 12 vCPU (High Core Count) |
| RAM Memory | 4 GB to 32 GB | 6 GB to 64 GB (Gigantic RAM) |
| Storage Technology | 50 GB – 400 GB NVMe SSD | 50 GB NVMe or 300 GB SSD |
| Traffic / Bandwidth | 4 TB to 32 TB | 32 TB Outgoing + Unlimited In |
| Control Panel & UI | hPanel (Ultra Modern & Easy) | cPanel, Plesk, Webmin, or CLI |
| Customer Support | 24/7 Live Chat & AI Support (Multi-lingual) | Email Ticket Support (German Business Hours) |
| Best For | Bloggers, WordPress Sites & Devs wanting easy UI | Heavy Database, Docker, Game Servers & SysAdmins |
| Money-Back Guarantee | 30-Day Money-Back Guarantee | 14-Day EU Statutory Cancellation |
| Official Links | Visit Hostinger | Visit Contabo |
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
The Failure of Default Database Search
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:
- Install the official Meilisearch for WordPress plugin.
- Under Settings > Meilisearch, set your Server URL to
https://search.yourdomain.com. - Paste your Master API key (or create a dedicated search/write key via API).
- 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 |
Recommended Reading & Related Guides
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
Official External Documentation
Official reference for multi-container YAML specifications and production flags.
Core documentation for wp-config constants, WP-CLI, and performance hooks.
Official hPanel guides for DNS, LiteSpeed Cache, and WordPress staging.
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
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
How to Deploy Docker & Docker Compose on Contabo VPS (Production Ready)
A complete guide to installing Docker Engine 26 and Docker Compose on Contabo Ubuntu 24.04 VPS. Includes Docker daemon tuning, UFW firewall integration, and a Traefik reverse proxy demo.
How to Set Up Samba Private Network File Share on Ubuntu VPS (Windows & Mac Remote Drive)
Mount your high-capacity Contabo cloud storage as a native local hard drive on Windows Explorer and Mac Finder using encrypted Samba (SMB) networking.
How to Self-Host Meilisearch Fast Search Engine on VPS for WordPress & Laravel Apps
Replace sluggish MySQL LIKE searches with a lightning-fast, typo-tolerant search engine. A complete guide to deploying Meilisearch on an Ubuntu cloud VPS.