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
-
In Zeabur OSS, open the
meilisearchservice. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains, for examplesearch.example.com. -
Get the master key. Open Variables, click
meilisearch-secretsunder From config files and secrets, and click the eye icon next tomaster-key. Without Zeabur OSS, read Secretmeilisearch-secrets, keymaster-key, with kubectl:kubectl -n <namespace> get secret meilisearch-secrets -o jsonpath='{.data.master-key}' | base64 -d -
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
- Homepage
- meilisearch.com
- Source file
- templates/meilisearch/template.yaml @ v0.6.3
Tested in CI
CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.
| Distribution | Platform | Kubernetes | Passed | Idle memory |
|---|---|---|---|---|
| kind | linux/amd64 | v1.37.0 | 9 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
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.
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.
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.