{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e2222dd2-ff5c-4dd0-9b29-19ea29f8d598",
    "slug": "janusgraph-graphdb",
    "name": "JanusGraph GraphDB",
    "description": "JanusGraph: an open-source, distributed graph database",
    "url": "https://railway.com/deploy/janusgraph-graphdb",
    "upstream": {
      "image": "janusgraph/janusgraph-visualizer:1.0.4"
    }
  },
  "services": [
    {
      "name": "visualizer",
      "source": {
        "image": "janusgraph/janusgraph-visualizer:1.0.4"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "elasticsearch",
      "source": {
        "repo": "https://github.com/railwayapp-templates/elasticsearch"
      },
      "needs_volume": true,
      "volume_mount_path": "/esdata",
      "http": false
    },
    {
      "name": "janusgraph",
      "source": {
        "image": "janusgraph/janusgraph:latest"
      },
      "needs_volume": false,
      "tcp_ports": [
        8182
      ],
      "http": false
    },
    {
      "name": "cassandra",
      "source": {
        "image": "cassandra:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/cassandra",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "GREMLIN_HOST",
      "service": "visualizer",
      "description": "Provide a value for GREMLIN_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "elasticsearch",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "9200"
    },
    {
      "key": "http.host",
      "service": "elasticsearch",
      "description": "Provide a value for http.host.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "ES_JAVA_OPTS",
      "service": "elasticsearch",
      "description": "Provide a value for ES_JAVA_OPTS.",
      "secret": false,
      "strategy": "default",
      "default": "-Xms500m -Xmx4g"
    },
    {
      "key": "cluster.name",
      "service": "elasticsearch",
      "description": "Provide a value for cluster.name.",
      "secret": false,
      "strategy": "default",
      "default": "docker-cluster"
    },
    {
      "key": "network.host",
      "service": "elasticsearch",
      "description": "Provide a value for network.host.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "discovery.type",
      "service": "elasticsearch",
      "description": "Provide a value for discovery.type.",
      "secret": false,
      "strategy": "default",
      "default": "single-node"
    },
    {
      "key": "transport.host",
      "service": "elasticsearch",
      "description": "Provide a value for transport.host.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    },
    {
      "key": "ELASTIC_PASSWORD",
      "service": "elasticsearch",
      "description": "Provide a value for ELASTIC_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ELASTIC_USERNAME",
      "service": "elasticsearch",
      "description": "Provide a value for ELASTIC_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "elastic"
    },
    {
      "key": "xpack.security.enabled",
      "service": "elasticsearch",
      "description": "Provide a value for xpack.security.enabled.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "JANUS_PROPS_TEMPLATE",
      "service": "janusgraph",
      "description": "Provide a value for JANUS_PROPS_TEMPLATE.",
      "secret": false,
      "strategy": "default",
      "default": "cassandra-es"
    },
    {
      "key": "janusgraph.gremlin.graph",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.gremlin.graph.",
      "secret": false,
      "strategy": "default",
      "default": "org.janusgraph.core.JanusGraphFactory"
    },
    {
      "key": "janusgraph.cache.db-cache",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.cache.db-cache.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "janusgraph.storage.backend",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.storage.backend.",
      "secret": false,
      "strategy": "default",
      "default": "cql"
    },
    {
      "key": "janusgraph.storage.hostname",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.storage.hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "janusgraph.cache.db-cache-size",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.cache.db-cache-size.",
      "secret": false,
      "strategy": "default",
      "default": "0.25"
    },
    {
      "key": "janusgraph.cache.db-cache-time",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.cache.db-cache-time.",
      "secret": false,
      "strategy": "default",
      "default": "180000"
    },
    {
      "key": "janusgraph.index.search.backend",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.index.search.backend.",
      "secret": false,
      "strategy": "default",
      "default": "elasticsearch"
    },
    {
      "key": "janusgraph.storage.cql.keyspace",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.storage.cql.keyspace.",
      "secret": true,
      "strategy": "default",
      "default": "janusgraph"
    },
    {
      "key": "janusgraph.index.search.hostname",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.index.search.hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "janusgraph.cache.db-cache-clean-wait",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.cache.db-cache-clean-wait.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "janusgraph.graph.replace-instance-if-exists",
      "service": "janusgraph",
      "description": "Provide a value for janusgraph.graph.replace-instance-if-exists.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MAX_HEAP_SIZE",
      "service": "cassandra",
      "description": "Provide a value for MAX_HEAP_SIZE.",
      "secret": false,
      "strategy": "default",
      "default": "4G"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "janusgraph-graphdb"
      }
    },
    "cli": "railway deploy --template janusgraph-graphdb",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e2222dd2-ff5c-4dd0-9b29-19ea29f8d598",
            "serializedConfig": {
              "services": {
                "117c1a3f-2a97-43f7-8d9a-6cfd9006b815": {
                  "name": "visualizer",
                  "source": {
                    "image": "janusgraph/janusgraph-visualizer:1.0.4"
                  },
                  "variables": {
                    "GREMLIN_HOST": {
                      "defaultValue": "${{janusgraph.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3001": {
                        "port": 3001
                      }
                    }
                  }
                },
                "30828386-1699-4a98-b020-699d37528ae0": {
                  "icon": "https://cdn.worldvectorlogo.com/logos/elasticsearch.svg",
                  "name": "elasticsearch",
                  "source": {
                    "repo": "railwayapp-templates/elasticsearch",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "9200"
                    },
                    "http.host": {
                      "defaultValue": "0.0.0.0"
                    },
                    "ES_JAVA_OPTS": {
                      "defaultValue": "-Xms500m -Xmx4g"
                    },
                    "cluster.name": {
                      "defaultValue": "docker-cluster"
                    },
                    "network.host": {
                      "defaultValue": "0.0.0.0"
                    },
                    "discovery.type": {
                      "defaultValue": "single-node"
                    },
                    "transport.host": {
                      "defaultValue": "127.0.0.1"
                    },
                    "ELASTIC_PASSWORD": {
                      "defaultValue": "{{ELASTIC_PASSWORD}}"
                    },
                    "ELASTIC_USERNAME": {
                      "defaultValue": "elastic"
                    },
                    "xpack.security.enabled": {
                      "defaultValue": "false"
                    }
                  },
                  "volumeMounts": {
                    "30828386-1699-4a98-b020-699d37528ae0": {
                      "mountPath": "/esdata"
                    }
                  }
                },
                "316604fb-58a1-4bd8-aa4b-69ac9729665d": {
                  "icon": "https://docs.janusgraph.org/janusgraph-logomark.svg",
                  "name": "janusgraph",
                  "source": {
                    "image": "janusgraph/janusgraph:latest"
                  },
                  "variables": {
                    "JANUS_PROPS_TEMPLATE": {
                      "defaultValue": "cassandra-es"
                    },
                    "janusgraph.gremlin.graph": {
                      "defaultValue": "org.janusgraph.core.JanusGraphFactory"
                    },
                    "janusgraph.cache.db-cache": {
                      "defaultValue": "true"
                    },
                    "janusgraph.storage.backend": {
                      "defaultValue": "cql"
                    },
                    "janusgraph.storage.hostname": {
                      "defaultValue": "${{cassandra.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "janusgraph.cache.db-cache-size": {
                      "defaultValue": "0.25"
                    },
                    "janusgraph.cache.db-cache-time": {
                      "defaultValue": "180000"
                    },
                    "janusgraph.index.search.backend": {
                      "defaultValue": "elasticsearch"
                    },
                    "janusgraph.storage.cql.keyspace": {
                      "defaultValue": "janusgraph"
                    },
                    "janusgraph.index.search.hostname": {
                      "defaultValue": "${{elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "janusgraph.cache.db-cache-clean-wait": {
                      "defaultValue": "20"
                    },
                    "janusgraph.graph.replace-instance-if-exists": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "8182": {}
                    }
                  }
                },
                "b6ed6a54-7674-45c6-87e2-fd39ecbd1d6b": {
                  "icon": "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/cassandra/cassandra-original.svg",
                  "name": "cassandra",
                  "source": {
                    "image": "cassandra:latest"
                  },
                  "variables": {
                    "MAX_HEAP_SIZE": {
                      "defaultValue": "4G"
                    }
                  },
                  "volumeMounts": {
                    "b6ed6a54-7674-45c6-87e2-fd39ecbd1d6b": {
                      "mountPath": "/var/lib/cassandra"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T16:59:37.581Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_51eddaf0369c40e3a986",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 189,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "visualizer"
  }
}
