{
  "id": "surrealdb",
  "name": "SurrealDB",
  "slogan": "A multi-model database for documents, graphs and relations with a SQL-like query language, using the RocksDB engine on a named volume. The root password is generated at install. Source available under the BSL.",
  "category": "Database Tools",
  "categorySlug": "database-tools",
  "tags": [
    "single-container"
  ],
  "license": {
    "spdx": "LicenseRef-BUSL-1.1",
    "class": "source-available"
  },
  "memoryMiB": 512,
  "architectures": {
    "amd64": "unknown",
    "arm64": "unknown"
  },
  "trust": "listed",
  "verified": false,
  "status": "active",
  "installCommand": "levelrail-cli templates install surrealdb --name my-surrealdb",
  "deployFormats": [
    "cli",
    "api"
  ],
  "url": "https://levelrail.com/templates/surrealdb/",
  "docsUrl": "https://surrealdb.com/docs",
  "sourceRepo": "https://github.com/surrealdb/surrealdb",
  "markdownUrl": "https://levelrail.com/templates/surrealdb.md",
  "jsonUrl": "https://levelrail.com/templates/surrealdb.json",
  "indexable": true,
  "description": "A multi-model database for documents, graphs and relations with a SQL-like query language, using the RocksDB engine on a named volume. The root password is generated at install. Source available under the BSL.",
  "pinnedTag": "v2.1.2",
  "licenseUrl": "https://github.com/surrealdb/surrealdb/blob/main/LICENSE",
  "licenseClassLabel": "Source available",
  "needsConfig": false,
  "gpu": false,
  "firstRun": [
    "Read the generated root password from the app secrets, then connect over HTTP or WebSocket on port 8000 as user root."
  ],
  "services": [
    {
      "name": "surrealdb",
      "image": "surrealdb/surrealdb",
      "tag": "v2.1.2",
      "ports": [
        8000
      ],
      "volumes": [
        "surreal_data -> /data"
      ]
    }
  ],
  "env": [
    {
      "service": "surrealdb",
      "name": "SURREAL_PASS",
      "kind": "generated"
    },
    {
      "service": "surrealdb",
      "name": "SURREAL_USER",
      "kind": "preset"
    }
  ],
  "verifiedTag": null,
  "verifiedArches": [],
  "aliases": [],
  "findings": [],
  "compose": null,
  "deploy": {
    "cli": "levelrail-cli templates deploy surrealdb --name my-surrealdb",
    "api": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/surrealdb/deploy",
    "stack": null,
    "terraform": null,
    "formats": [
      {
        "id": "cli",
        "label": "CLI",
        "lang": "bash",
        "code": "levelrail-cli templates deploy surrealdb --name my-surrealdb"
      },
      {
        "id": "api",
        "label": "API",
        "lang": "bash",
        "code": "curl -X POST -H \"Authorization: Bearer $TOKEN\" \\\n  https://levelrail.example.com/api/v1/service-templates/surrealdb/deploy",
        "note": "Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove."
      }
    ]
  }
}
