{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f58670ed-b25a-474a-8dc7-e2c648aedec8",
    "slug": "z-IiRE",
    "name": "Openblocks",
    "description": "The Open Source Retool Alternative",
    "url": "https://railway.com/deploy/z-IiRE",
    "upstream": {
      "repo_url": "https://github.com/railwayapp-templates/openblocks"
    }
  },
  "services": [
    {
      "name": "Openblocks Node",
      "source": {
        "repo": "https://github.com/railwayapp-templates/openblocks"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Openblocks API",
      "source": {
        "repo": "https://github.com/railwayapp-templates/openblocks"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "tcp_ports": [
        27017
      ],
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "Openblocks Frontend",
      "source": {
        "repo": "https://github.com/railwayapp-templates/openblocks"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Openblocks Node",
      "description": "DEFAULT PORT",
      "secret": false,
      "strategy": "default",
      "default": "6060"
    },
    {
      "key": "OPENBLOCKS_API_SERVICE_URL",
      "service": "Openblocks Node",
      "description": "Openblocks API service URL\t",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "Openblocks API",
      "description": "DEFAULT PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "Openblocks API",
      "description": "Redis server URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGODB_URI",
      "service": "Openblocks API",
      "description": "Mongo database connection string\t",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "JS_EXECUTOR_URI",
      "service": "Openblocks API",
      "description": "Node service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENABLE_USER_SIGN_UP",
      "service": "Openblocks API",
      "description": "Enable registration of new users",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CORS_ALLOWED_DOMAINS",
      "service": "Openblocks API",
      "description": "CORS allowed domains\t",
      "secret": false,
      "strategy": "default",
      "default": "*"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "MongoDB Port.",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Mongodb user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private URL to connect to MongoDB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Root password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "MongoDB",
      "description": "Public URL to connect to MongoDB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root user password, set during initialization.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "User created during initialization, given the root role.",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PORT",
      "service": "Openblocks Frontend",
      "description": "DEFAULT PORT",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "OPENBLOCKS_API_SERVICE_URL",
      "service": "Openblocks Frontend",
      "description": "Openblocks API service URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENBLOCKS_NODE_SERVICE_URL",
      "service": "Openblocks Frontend",
      "description": "Openblocks Node service (js executor) URL\t",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "z-IiRE"
      }
    },
    "cli": "railway deploy --template z-IiRE",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f58670ed-b25a-474a-8dc7-e2c648aedec8",
            "serializedConfig": {
              "services": {
                "1540ce8e-eb82-4824-b129-9f77866aea01": {
                  "name": "Openblocks Node",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/openblocks",
                    "rootDirectory": "/node-service"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "DEFAULT PORT",
                      "defaultValue": "6060"
                    },
                    "OPENBLOCKS_API_SERVICE_URL": {
                      "isOptional": true,
                      "description": "Openblocks API service URL\t",
                      "defaultValue": "https://${{RAILWAY_SERVICE_OPENBLOCKS_API_URL}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "486ee5ff-4c7a-440f-978e-5e73ee5a3883": {
                  "name": "Openblocks API",
                  "build": {},
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/openblocks",
                    "rootDirectory": "/api-service"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "DEFAULT PORT",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": true,
                      "description": "Redis server URL",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDISPASSWORD}}@${{REDISHOST}}:${{REDISPORT}}/0"
                    },
                    "MONGODB_URI": {
                      "isOptional": true,
                      "description": "Mongo database connection string\t",
                      "defaultValue": "${{MONGO_URL}}/openblocks?authSource=admin"
                    },
                    "JS_EXECUTOR_URI": {
                      "isOptional": true,
                      "description": "Node service URL",
                      "defaultValue": "https://${{RAILWAY_SERVICE_OPENBLOCKS_NODE_URL}}"
                    },
                    "ENABLE_USER_SIGN_UP": {
                      "isOptional": true,
                      "description": "Enable registration of new users",
                      "defaultValue": "true"
                    },
                    "CORS_ALLOWED_DOMAINS": {
                      "isOptional": true,
                      "description": "CORS allowed domains\t",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "8e664a98-a335-4d5b-994b-45951f2aa729": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0"
                  },
                  "source": {
                    "image": "mongo"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "MongoDB Port.",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Mongodb user.",
                      "defaultValue": "${{ MONGO_INITDB_ROOT_USERNAME }}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private URL to connect to MongoDB.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Root password.",
                      "defaultValue": "${{ MONGO_INITDB_ROOT_PASSWORD }}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "description": "Public URL to connect to MongoDB, used for Data panel.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root user password, set during initialization.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "User created during initialization, given the root role.",
                      "defaultValue": "mongo"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "27017": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "8e664a98-a335-4d5b-994b-45951f2aa729": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "b40bb5a7-6e97-4800-9fe7-694c644392b9": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "bitnami/redis"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "b40bb5a7-6e97-4800-9fe7-694c644392b9": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "c074692a-1737-453c-8508-4894cdadc7c9": {
                  "name": "Openblocks Frontend",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/railwayapp-templates/openblocks",
                    "rootDirectory": "/frontend"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "DEFAULT PORT",
                      "defaultValue": "3000"
                    },
                    "OPENBLOCKS_API_SERVICE_URL": {
                      "isOptional": true,
                      "description": "Openblocks API service URL",
                      "defaultValue": "https://${{RAILWAY_SERVICE_OPENBLOCKS_API_URL}}"
                    },
                    "OPENBLOCKS_NODE_SERVICE_URL": {
                      "isOptional": true,
                      "description": "Openblocks Node service (js executor) URL\t",
                      "defaultValue": "https://${{RAILWAY_SERVICE_OPENBLOCKS_NODE_URL}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T17:04:33.942Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_67bfe4047ecd486ab550",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "BUILDING,BUILDING,BUILDING,CRASHED,SUCCESS"
      }
    ]
  }
}
