Search & Storage1 GB RAM (Pro recommended)· Port 8108

Deploy Typesense Search Engine with Docker Compose

Open-source Algolia & Elasticsearch alternative built in C++ for sub-50ms instant search and vector queries.

1. Production docker-compose.yml Configuration

Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.

docker-compose.yml
yaml
services:
  typesense:
    image: typesense/typesense:27.1
    restart: unless-stopped
    ports:
      - "8108:8108"
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY:-change-me-typesense-admin-key}
      - TYPESENSE_DATA_DIR=${TYPESENSE_DATA_DIR:-/data}
    volumes:
      - app_data:/data


volumes:
  app_data:

2. Required Environment Variables

VariableDefault / ExampleDescription
TYPESENSE_API_KEYchange-me-typesense-admin-keyBootstrap admin API key for Typesense.
TYPESENSE_DATA_DIR/dataPersistent volume path storing snapshots and indices.

Typesense Search Engine Self-Hosting FAQs

How much RAM is required to self-host Typesense Search Engine in production?

Typesense Search Engine requires a minimum of 1 GB RAM (Pro recommended). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.

How do I expose Typesense Search Engine with automatic HTTPS/SSL on Vexlo Cloud?

Deploy the typesense/typesense:27.1 container on Vexlo Cloud, set the exposed port to 8108, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.

How is persistent data backed up for Typesense Search Engine?

Mount /data to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.

More 1-Click Docker Templates

View all 25 templates →