Open Source
All templates and components

App template

Meilisearch

A fast search engine with a master key and indexes on a volume.

Memory when idle
about 10 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 servers

Introduction

Meilisearch is a search engine with a REST API. You send it documents, and it answers search requests in milliseconds.

This template runs one Meilisearch instance behind your domain, with its indexes on a volume. Every request needs a key. There is no web page and no sign-in.

Values you provide

You don’t fill in anything when you deploy.

Made for you

These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.

  • meilisearch-secrets/master-key

Getting started

  1. In Zeabur OSS, open the meilisearch service. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains, for example search.example.com.

  2. Get the master key. Open Variables, click meilisearch-secrets under From config files and secrets, and click the eye icon next to master-key. Without Zeabur OSS, read Secret meilisearch-secrets, key master-key, with kubectl:

    kubectl -n <namespace> get secret meilisearch-secrets -o jsonpath='{.data.master-key}' | base64 -d
    
  3. Send requests to the domain with the header Authorization: Bearer <key>. For example, list the API keys:

    curl https://search.example.com/keys -H 'Authorization: Bearer <master key>'
    

Use the master key only to manage API keys. Give clients a search key.

Configuration

Get a key for your clients

Meilisearch creates a Default Search API Key and a Default Admin API Key for you. The GET /keys request above lists them. Use the search key in your web or mobile app, and the admin key on your server to add documents. See Basic security.

Create a dump

A dump is a backup of all data of the instance. Create one with an API key that is allowed to do it:

curl -X POST https://search.example.com/dumps -H 'Authorization: Bearer <key>'

Meilisearch writes the dump to /meili_data/dumps on the volume. See Dumps.

Troubleshooting

Requests return 502 or time out

Open the meilisearch service in Zeabur OSS. Check that Overview shows its replica as ready, then read the Logs tab. If the replica is not ready, open Deployments and switch to Events. If Events show OOMKilled, the service ran out of memory. Raise Maximum memory under Settings → Compute. If the domain or the certificate stays pending, see Troubleshooting on the domains page.

See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal in the Zeabur OSS docs.

Requests return 401

Meilisearch rejects requests without a valid key. Send the key in the Authorization: Bearer header, and check that you use a key of this instance. See Basic security.

Resources

Each service is guaranteed the first amount and can use up to the second.

  • meilisearch

    Ports

    7700

    CPU

    0.2 cores to 2 cores

    Memory

    512 MiB to 2 GiB

Technical details

This release

Version
v1.56.2
Licence
MIT

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
kindlinux/amd64v1.37.09 MiB

Security

The container runs as UID 1000 with a read-only filesystem, no Kubernetes token and all extra system privileges removed. Production mode needs the master key. The ingress route is public.

Known risks

  1. Risk

    Anyone on the internet can reach the API through the Ingress.

    How it is handled

    Without a valid key, Meilisearch rejects requests. The search preview page is off. Give browsers only a search key or a tenant token. Never give them the master key.

  2. Risk

    AI-powered search embedders, webhooks and network search make outbound calls, and the template does not limit them. Someone could point one at a private address.

    How it is handled

    Set up only provider endpoints you trust. You can also add an egress NetworkPolicy (a rule that limits outbound traffic) to restrict them.

  3. Risk

    Enterprise Edition features are not in this image.

    How it is handled

    Sharding, replication and S3 snapshots return a requires_enterprise_edition error. They need the separate Enterprise image, which uses the BUSL-1.1 license and needs a commercial license for production use.

What the cluster needs

Zeabur OSS suggests the components a cluster is missing. Without it, install them first.