{
  "manifest_version": "1.0.0",
  "template": {
    "id": "81e1fc42-cf4c-4e2c-880d-5cc3df995ab7",
    "slug": "ensnode-alpha-quickstart",
    "name": "ENSNode Alpha Quickstart",
    "description": "The full-stack development platform for ENSv2.",
    "url": "https://railway.com/deploy/ensnode-alpha-quickstart",
    "upstream": {
      "image": "ghcr.io/namehash/ensnode/ensapi:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "ENSRainbow",
      "source": {
        "image": "ghcr.io/namehash/ensnode/ensrainbow:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/apps/ensrainbow/data",
      "http": false
    },
    {
      "name": "ENSDb Server",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    },
    {
      "name": "ENSApi",
      "source": {
        "image": "ghcr.io/namehash/ensnode/ensapi:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "ENSIndexer",
      "source": {
        "image": "ghcr.io/namehash/ensnode/ensindexer:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "ENSAdmin",
      "source": {
        "image": "ghcr.io/namehash/ensnode/ensadmin:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LOG_LEVEL",
      "service": "ENSRainbow",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LABEL_SET_ID",
      "service": "ENSRainbow",
      "description": "Provide a value for LABEL_SET_ID.",
      "secret": false,
      "strategy": "default",
      "default": "searchlight"
    },
    {
      "key": "DB_SCHEMA_VERSION",
      "service": "ENSRainbow",
      "description": "Provide a value for DB_SCHEMA_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "LABEL_SET_VERSION",
      "service": "ENSRainbow",
      "description": "Provide a value for LABEL_SET_VERSION.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PGDATA",
      "service": "ENSDb Server",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "ENSDb Server",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "ENSDb Server",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "ENSDb Server",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "ENSDb Server",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "ENSDb Server",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "ENSDb Server",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "ENSDb Server",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "ENSDb Server",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "ENSDb Server",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "ENSDb Server",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "ENSDb Server",
      "description": "Public URL to connect to Postgres database, used by the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "ENSDb Server",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "ENSDB_URL",
      "service": "ENSApi",
      "description": "URL for the co-located server hosting ENSDb instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ALCHEMY_API_KEY",
      "service": "ENSApi",
      "description": "Your API key for the Alchemy RPC.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ENSINDEXER_SCHEMA_NAME",
      "service": "ENSApi",
      "description": "The name of ENSDb Writer Schema in ENSDb.  _MUST_ be same as the one configured in the _ENSIndexer instance_.",
      "secret": false,
      "strategy": "default",
      "default": "ensdb_writer_0"
    },
    {
      "key": "PLUGINS",
      "service": "ENSIndexer",
      "description": "ENSNode Plugins to be activated.",
      "secret": false,
      "strategy": "default",
      "default": "unigraph,subgraph,protocol-acceleration,basenames,lineanames,threedns,registrars,tokenscope"
    },
    {
      "key": "ENSDB_URL",
      "service": "ENSIndexer",
      "description": "URL for the co-located server hosting ENSDb instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NAMESPACE",
      "service": "ENSIndexer",
      "description": "The ENS namespace, identifies which ENS protocol deployment ENSNode will provide data for (ex: mainnet or sepolia).",
      "secret": false,
      "strategy": "default",
      "default": "mainnet"
    },
    {
      "key": "LABEL_SET_ID",
      "service": "ENSIndexer",
      "description": "The label set ID to be applied for ENSRainbow requests.",
      "secret": false,
      "strategy": "default",
      "default": "searchlight"
    },
    {
      "key": "ENSRAINBOW_URL",
      "service": "ENSIndexer",
      "description": "URL for the co-located ENSRainbow instance.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ALCHEMY_API_KEY",
      "service": "ENSIndexer",
      "description": "Your API key for the Alchemy RPC.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LABEL_SET_VERSION",
      "service": "ENSIndexer",
      "description": "The label set verion to be applied for ENSRainbow requests.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ENSINDEXER_SCHEMA_NAME",
      "service": "ENSIndexer",
      "description": "The name of ENSDb Writer Schema in ENSDb where ENSIndexer will store indexed data.",
      "secret": false,
      "strategy": "default",
      "default": "ensdb_writer_0"
    },
    {
      "key": "ENSADMIN_PUBLIC_URL",
      "service": "ENSAdmin",
      "description": "Provide a value for ENSADMIN_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY",
      "service": "ENSAdmin",
      "description": "Provide a value for NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ensnode-alpha-quickstart"
      }
    },
    "cli": "railway deploy --template ensnode-alpha-quickstart",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "81e1fc42-cf4c-4e2c-880d-5cc3df995ab7",
            "serializedConfig": {
              "services": {
                "2535587e-f463-48c5-a830-09d5c5c2dd66": {
                  "icon": "https://raw.githubusercontent.com/namehash/ensnode/refs/heads/main/docs/ensnode.io/src/assets/ensrainbow.svg",
                  "name": "ENSRainbow",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/namehash/ensnode/ensrainbow:latest"
                  },
                  "variables": {
                    "LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "LABEL_SET_ID": {
                      "description": "",
                      "defaultValue": "searchlight"
                    },
                    "DB_SCHEMA_VERSION": {
                      "defaultValue": "3"
                    },
                    "LABEL_SET_VERSION": {
                      "description": "",
                      "defaultValue": "1"
                    }
                  },
                  "volumeMounts": {
                    "2535587e-f463-48c5-a830-09d5c5c2dd66": {
                      "sizeMB": 60000,
                      "mountPath": "/app/apps/ensrainbow/data"
                    }
                  }
                },
                "5a3a0f65-d1dd-4664-b5e3-11082ce0785b": {
                  "icon": "https://raw.githubusercontent.com/namehash/ensnode/refs/heads/main/docs/ensnode.io/src/assets/ensdb.svg",
                  "name": "ENSDb Server",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "description": "Public URL to connect to Postgres database, used by the Data panel.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_SHM_SIZE_BYTES": {
                      "isOptional": true,
                      "description": "PostgreSQL shared memory allocation (bytes). Rule of thumb: set to at least the size of `shared_buffers`, preferably `1.25x–1.5x` larger. Example: `shared_buffers=512MB` -> `RAILWAY_SHM_SIZE_BYTES=1073741824` (1GB).",
                      "defaultValue": ""
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "5a3a0f65-d1dd-4664-b5e3-11082ce0785b": {
                      "sizeMB": 500000,
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "7e7d27d7-eada-4966-b257-b30b5d92aa21": {
                  "icon": "https://raw.githubusercontent.com/namehash/ensnode/refs/heads/main/docs/ensnode.io/src/assets/ensapi.svg",
                  "name": "ENSApi",
                  "source": {
                    "image": "ghcr.io/namehash/ensnode/ensapi:latest"
                  },
                  "variables": {
                    "ENSDB_URL": {
                      "description": "URL for the co-located server hosting ENSDb instance.",
                      "defaultValue": "${{\"ENSDb Server\".DATABASE_URL}}"
                    },
                    "ALCHEMY_API_KEY": {
                      "description": "Your API key for the Alchemy RPC.",
                      "defaultValue": "{{ALCHEMY_API_KEY}}"
                    },
                    "ENSINDEXER_SCHEMA_NAME": {
                      "description": "The name of ENSDb Writer Schema in ENSDb.  _MUST_ be same as the one configured in the _ENSIndexer instance_.",
                      "defaultValue": "ensdb_writer_0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "a9284bd5-8940-45a8-9148-db76b688969d": {
                  "icon": "https://raw.githubusercontent.com/namehash/ensnode/refs/heads/main/docs/ensnode.io/src/assets/ensindexer.svg",
                  "name": "ENSIndexer",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/namehash/ensnode/ensindexer:latest"
                  },
                  "variables": {
                    "PLUGINS": {
                      "description": "ENSNode Plugins to be activated.",
                      "defaultValue": "unigraph,subgraph,protocol-acceleration,basenames,lineanames,threedns,registrars,tokenscope"
                    },
                    "ENSDB_URL": {
                      "description": "URL for the co-located server hosting ENSDb instance.",
                      "defaultValue": "${{\"ENSDb Server\".DATABASE_URL}}"
                    },
                    "NAMESPACE": {
                      "description": "The ENS namespace, identifies which ENS protocol deployment ENSNode will provide data for (ex: mainnet or sepolia).",
                      "defaultValue": "mainnet"
                    },
                    "LABEL_SET_ID": {
                      "description": "The label set ID to be applied for ENSRainbow requests.",
                      "defaultValue": "searchlight"
                    },
                    "ENSRAINBOW_URL": {
                      "description": "URL for the co-located ENSRainbow instance.",
                      "defaultValue": "http://${{ENSRainbow.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "ALCHEMY_API_KEY": {
                      "description": "Your API key for the Alchemy RPC.",
                      "defaultValue": "{{ALCHEMY_API_KEY}}"
                    },
                    "LABEL_SET_VERSION": {
                      "description": "The label set verion to be applied for ENSRainbow requests.",
                      "defaultValue": "1"
                    },
                    "ENSINDEXER_SCHEMA_NAME": {
                      "description": "The name of ENSDb Writer Schema in ENSDb where ENSIndexer will store indexed data.",
                      "defaultValue": "ensdb_writer_0"
                    }
                  }
                },
                "dcc9089f-0f64-4ec8-a4b5-345bda75ff51": {
                  "icon": "https://raw.githubusercontent.com/namehash/ensnode/refs/heads/main/docs/ensnode.io/src/assets/ensadmin.svg",
                  "name": "ENSAdmin",
                  "source": {
                    "image": "ghcr.io/namehash/ensnode/ensadmin:latest"
                  },
                  "variables": {
                    "ENSADMIN_PUBLIC_URL": {
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_SERVER_CONNECTION_LIBRARY": {
                      "defaultValue": "${{ENSApi.RAILWAY_PUBLIC_DOMAIN}},https://api.alpha.ensnode.io,https://api.alpha-sepolia.ensnode.io,https://api.mainnet.ensnode.io,https://api.sepolia.ensnode.io,https://api.v2-sepolia.ensnode.io"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4173": {
                        "port": 4173
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-06T17:54:17.775Z",
  "generator_version": "0.1.0"
}
