{
  "manifest_version": "1.0.0",
  "template": {
    "id": "39cc73ac-1afa-4fbc-a823-d9bdece0ac8d",
    "slug": "meilisearch-4",
    "name": "Meilisearch",
    "description": "Instant typo-tolerant search engine - single 50MB Rust binary",
    "url": "https://railway.com/deploy/meilisearch-4",
    "upstream": {
      "image": "getmeili/meilisearch:v1.12"
    }
  },
  "services": [
    {
      "name": "meilisearch-lite",
      "source": {
        "image": "getmeili/meilisearch:v1.12"
      },
      "needs_volume": true,
      "volume_mount_path": "/meili_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "meilisearch-lite",
      "description": "Railway port target for the public domain and the internal healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "7700"
    },
    {
      "key": "MEILI_ENV",
      "service": "meilisearch-lite",
      "description": "Runtime environment. Keep 'production' so the HTTP API is protected by the master key.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "MEILI_DB_PATH",
      "service": "meilisearch-lite",
      "description": "Database location inside the volume. Use a subdirectory of the mount, not the mount root, for reliable LMDB persistence on Railway.",
      "secret": false,
      "strategy": "default",
      "default": "/meili_data/data.ms"
    },
    {
      "key": "MEILI_HTTP_ADDR",
      "service": "meilisearch-lite",
      "description": "Address and port Meilisearch listens on. Must match the Railway port mapping (7700).",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:7700"
    },
    {
      "key": "MEILI_MASTER_KEY",
      "service": "meilisearch-lite",
      "description": "Master key protecting all API routes. Auto-generated 32-character secret per deployment. Clients send it as 'Authorization: Bearer <key>'.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MEILI_NO_ANALYTICS",
      "service": "meilisearch-lite",
      "description": "Disable anonymous telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "meilisearch-4"
      }
    },
    "cli": "railway deploy --template meilisearch-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "39cc73ac-1afa-4fbc-a823-d9bdece0ac8d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "97478ea3-5d53-43a0-b231-6ced1f7451f7": {
                  "icon": null,
                  "name": "meilisearch-lite",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'mkdir -p /meili_data/snapshots /meili_data/dumps /meili_data/tmp; C=\"\"; if [ -r /sys/fs/cgroup/cpu.max ]; then CM=$(cat /sys/fs/cgroup/cpu.max); Q=${CM%% *}; P=${CM##* }; if [ \"$Q\" != \"max\" ] && [ -n \"$P\" ]; then C=$(( (Q + P - 1) / P )); fi; fi; [ -n \"$C\" ] || C=2; [ \"$C\" -le 4 ] || C=4; T=$(( C / 2 )); [ \"$T\" -ge 1 ] || T=1; M=\"\"; if [ -r /sys/fs/cgroup/memory.max ]; then MM=$(cat /sys/fs/cgroup/memory.max); if [ \"$MM\" != \"max\" ]; then M=$MM; fi; fi; [ -n \"$M\" ] || M=2147483648; [ -n \"$MEILI_MAX_INDEXING_THREADS\" ] || export MEILI_MAX_INDEXING_THREADS=$T; [ -n \"$MEILI_MAX_INDEXING_MEMORY\" ] || export MEILI_MAX_INDEXING_MEMORY=$(( M / 2 )); echo \"railway: cgroup cpus=$C mem=$M -> indexing_threads=$MEILI_MAX_INDEXING_THREADS indexing_mem=$MEILI_MAX_INDEXING_MEMORY\"; exec tini -s -- /bin/meilisearch'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "getmeili/meilisearch:v1.12"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Railway port target for the public domain and the internal healthcheck.",
                      "defaultValue": "7700"
                    },
                    "MEILI_ENV": {
                      "isOptional": false,
                      "description": "Runtime environment. Keep 'production' so the HTTP API is protected by the master key.",
                      "defaultValue": "production"
                    },
                    "MEILI_DB_PATH": {
                      "isOptional": false,
                      "description": "Database location inside the volume. Use a subdirectory of the mount, not the mount root, for reliable LMDB persistence on Railway.",
                      "defaultValue": "/meili_data/data.ms"
                    },
                    "MEILI_HTTP_ADDR": {
                      "isOptional": false,
                      "description": "Address and port Meilisearch listens on. Must match the Railway port mapping (7700).",
                      "defaultValue": "0.0.0.0:7700"
                    },
                    "MEILI_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Master key protecting all API routes. Auto-generated 32-character secret per deployment. Clients send it as 'Authorization: Bearer <key>'.",
                      "defaultValue": "{{MEILI_MASTER_KEY}}"
                    },
                    "MEILI_NO_ANALYTICS": {
                      "isOptional": false,
                      "description": "Disable anonymous telemetry.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:7700": {
                        "port": 7700
                      }
                    }
                  },
                  "volumeMounts": {
                    "97478ea3-5d53-43a0-b231-6ced1f7451f7": {
                      "mountPath": "/meili_data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "meilisearch-lite",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-28T22:14:58.605Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-28T19:13:45.950Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0d6e12f5886a4cbca5a2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "meilisearch-lite"
  }
}
