{
  "$schema": "https://blueprints.servus.run/schema/servus-blueprint-v1.schema.json",
  "schemaVersion": "servus-blueprint/v1",
  "id": "meilisearch",
  "name": "Meilisearch",
  "tagline": "Lightning-fast typo-tolerant full-text & vector search",
  "description": "Self-hosted search engine with instant prefix search, faceted filtering, and a generated master API key.",
  "category": "search",
  "tags": [
    "search",
    "full-text",
    "vector",
    "api"
  ],
  "version": "2026-12-03.1",
  "publisher": "Meilisearch (Servus Blueprint)",
  "icon": "meilisearch",
  "homepage": "https://www.meilisearch.com",
  "docsUrl": "https://www.meilisearch.com/docs",
  "sourceUrl": "https://github.com/meilisearch/meilisearch",
  "license": "MIT",
  "setup": "Use the generated MEILI_MASTER_KEY from the workload configuration view to authenticate indexing requests.",
  "inputs": [
    {
      "key": "environmentMode",
      "label": "Runtime mode",
      "type": "select",
      "default": "production",
      "options": [
        {
          "value": "production",
          "label": "Production (API key required)"
        },
        {
          "value": "development",
          "label": "Development (Search preview enabled)"
        }
      ]
    },
    {
      "key": "maxIndexingMemoryMb",
      "label": "Max indexing memory (MB)",
      "type": "number",
      "default": 512,
      "min": 128,
      "max": 16384,
      "group": "advanced"
    },
    {
      "key": "noAnalytics",
      "label": "Disable telemetry",
      "type": "boolean",
      "default": true,
      "group": "advanced"
    }
  ],
  "secrets": [
    {
      "key": "masterKey",
      "format": "base64url",
      "bytes": 32
    }
  ],
  "domains": [
    {
      "key": "primary",
      "label": "Search API domain",
      "service": "app",
      "port": 7700,
      "primary": true
    }
  ],
  "profiles": [
    {
      "id": "compact",
      "label": "Compact",
      "services": {
        "app": {
          "cpus": 0.5,
          "memoryMb": 512
        }
      }
    },
    {
      "id": "standard",
      "label": "Standard",
      "services": {
        "app": {
          "cpus": 1,
          "memoryMb": 1024
        }
      }
    },
    {
      "id": "performance",
      "label": "Performance",
      "services": {
        "app": {
          "cpus": 2,
          "memoryMb": 4096
        }
      }
    }
  ],
  "defaultProfile": "standard",
  "files": [],
  "volumes": [
    {
      "name": "data"
    }
  ],
  "networks": [],
  "services": [
    {
      "name": "app",
      "image": "getmeili/meilisearch:v1.13.3",
      "restart": "unless-stopped",
      "resources": {
        "cpus": 1,
        "memoryMb": 1024
      },
      "environment": {
        "MEILI_MASTER_KEY": "{{secrets.masterKey}}",
        "MEILI_ENV": "{{inputs.environmentMode|production}}",
        "MEILI_MAX_INDEXING_MEMORY": "{{inputs.maxIndexingMemoryMb|512}}Mb",
        "MEILI_NO_ANALYTICS": "{{inputs.noAnalytics|true}}"
      },
      "volumes": [
        {
          "volume": "data",
          "target": "/meili_data"
        }
      ],
      "expose": [
        7700
      ],
      "healthcheck": {
        "test": [
          "CMD-SHELL",
          "wget -qO- http://127.0.0.1:7700/health || exit 1"
        ],
        "interval": "30s",
        "timeout": "5s",
        "retries": 5
      }
    }
  ]
}
