{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2e14fda4-b780-4a76-bdd7-c37bb09996d1",
    "slug": "apache-age",
    "name": "Apache Age",
    "description": "Apache AGE™ a PostgreSQL graph database functionality with Cypher",
    "url": "https://railway.com/deploy/apache-age",
    "upstream": {
      "image": "apache/age"
    }
  },
  "services": [
    {
      "name": "apache-age",
      "source": {
        "image": "apache/age"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "URL",
      "service": "apache-age",
      "description": "PostgreSQL public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "apache-age",
      "description": "PostgreSQL data path",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "apache-age",
      "description": "PostgreSQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "apache-age",
      "description": "PostgreSQL port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGUSER",
      "service": "apache-age",
      "description": "PostgreSQL user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "PGDATABASE",
      "service": "apache-age",
      "description": "PostgreSQL default database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "PGPASSWORD",
      "service": "apache-age",
      "description": "PostgreSQL user password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PRIVATE_URL",
      "service": "apache-age",
      "description": "PostgreSQL private URL for internal services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apache-age"
      }
    },
    "cli": "railway deploy --template apache-age",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2e14fda4-b780-4a76-bdd7-c37bb09996d1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5a96509d-8a94-4159-8caa-9087328fac3d": {
                  "icon": "https://age.apache.org/img/favicon.png",
                  "name": "apache-age",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "apache/age"
                  },
                  "variables": {
                    "URL": {
                      "isOptional": true,
                      "description": "PostgreSQL public URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{PGPASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "PGDATA": {
                      "isOptional": true,
                      "description": "PostgreSQL data path",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "PostgreSQL host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "PostgreSQL port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "description": "PostgreSQL user",
                      "defaultValue": "postgres"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "description": "PostgreSQL default database name",
                      "defaultValue": "railway"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "PostgreSQL user password",
                      "defaultValue": "{{PGPASSWORD}}"
                    },
                    "PRIVATE_URL": {
                      "isOptional": true,
                      "description": "PostgreSQL private URL for internal services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{PGPASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "5a96509d-8a94-4159-8caa-9087328fac3d": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T10:38:30.573Z",
  "success_rate_30d": 0.4,
  "validation": {
    "last_run_id": "run_943b2645991d4e30a5e0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "CRASHED"
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "apache-age"
  }
}
