{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5695b22-084f-47ec-8048-20b8e95b3f46",
    "slug": "immudb",
    "name": "immudb",
    "description": "Immutable database with generated admin and backups",
    "url": "https://railway.com/deploy/immudb",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-immudb"
    }
  },
  "services": [
    {
      "name": "immudb",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-immudb"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "immudb",
      "description": "Public HTTP API and console port.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "IMMUDB_DIR",
      "service": "immudb",
      "description": "Persistent database directory.",
      "secret": false,
      "strategy": "default",
      "default": "/data/immudb"
    },
    {
      "key": "IMMUDB_AUTH",
      "service": "immudb",
      "description": "Require authentication.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMMUDB_PORT",
      "service": "immudb",
      "description": "Private native gRPC port.",
      "secret": false,
      "strategy": "default",
      "default": "3322"
    },
    {
      "key": "IMMUDB_ADDRESS",
      "service": "immudb",
      "description": "Bind address.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "IMMUDB_PGSQL_SERVER",
      "service": "immudb",
      "description": "Disable plaintext PostgreSQL compatibility listener.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "IMMUDB_ADMIN_PASSWORD",
      "service": "immudb",
      "description": "Generated immudb administrator password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "immudb"
      }
    },
    "cli": "railway deploy --template immudb",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5695b22-084f-47ec-8048-20b8e95b3f46",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "050ad847-8c39-43e5-a7f8-6fc5639b385e": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-immudb/f8aa8b654ad7a7e74788d47704519c5f9d2592b8/assets/immudb-icon.png",
                  "name": "immudb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v2/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-immudb",
                    "commitSha": "47b647d0dbe6ced822579edb857456634e3e401e",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Public HTTP API and console port.",
                      "defaultValue": "8080"
                    },
                    "IMMUDB_DIR": {
                      "isOptional": false,
                      "description": "Persistent database directory.",
                      "defaultValue": "/data/immudb"
                    },
                    "IMMUDB_AUTH": {
                      "isOptional": false,
                      "description": "Require authentication.",
                      "defaultValue": "true"
                    },
                    "IMMUDB_PORT": {
                      "isOptional": false,
                      "description": "Private native gRPC port.",
                      "defaultValue": "3322"
                    },
                    "IMMUDB_ADDRESS": {
                      "isOptional": false,
                      "description": "Bind address.",
                      "defaultValue": "0.0.0.0"
                    },
                    "IMMUDB_PGSQL_SERVER": {
                      "isOptional": false,
                      "description": "Disable plaintext PostgreSQL compatibility listener.",
                      "defaultValue": "false"
                    },
                    "IMMUDB_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated immudb administrator password.",
                      "defaultValue": "{{IMMUDB_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "050ad847-8c39-43e5-a7f8-6fc5639b385e": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "immudb",
      "method": "GET",
      "path": "/api/v2/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T12:02:55.809Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5f2e1dcc91654eca9ffe",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 107,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "immudb"
  }
}
