{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5ff5226b-9a66-410f-8c89-fce6ea5d5585",
    "slug": "evidence",
    "name": "Evidence",
    "description": "Build data reports by writing SQL and Markdown files",
    "url": "https://railway.com/deploy/evidence",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/evidence-railway"
    }
  },
  "services": [
    {
      "name": "evidence",
      "source": {
        "repo": "https://github.com/gridalpha/evidence-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "evidence",
      "description": "Port the front proxy listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DATABASE_URL",
      "service": "evidence",
      "description": "Superuser URL used only for boot bootstrap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EVIDENCE_DB_HOST",
      "service": "evidence",
      "description": "Warehouse private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "EVIDENCE_DB_NAME",
      "service": "evidence",
      "description": "Warehouse database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EVIDENCE_DB_USER",
      "service": "evidence",
      "description": "Read-only role Evidence connects as",
      "secret": false,
      "strategy": "default",
      "default": "evidence_reader"
    },
    {
      "key": "EVIDENCE_BOOTSTRAP",
      "service": "evidence",
      "description": "Seed sample data and reader role at boot",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "EVIDENCE_BASIC_USER",
      "service": "evidence",
      "description": "HTTP basic auth username for the site",
      "secret": false,
      "strategy": "default",
      "default": "analyst"
    },
    {
      "key": "EVIDENCE_DB_SSLMODE",
      "service": "evidence",
      "description": "TLS mode used to reach the warehouse",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "EVIDENCE_DB_PASSWORD",
      "service": "evidence",
      "description": "Password for the read-only warehouse role",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "EVIDENCE_BASIC_PASSWORD",
      "service": "evidence",
      "description": "HTTP basic auth password for the site",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "EVIDENCE_TELEMETRY_DISABLED",
      "service": "evidence",
      "description": "Opt out of anonymous CLI usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "evidence"
      }
    },
    "cli": "railway deploy --template evidence",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5ff5226b-9a66-410f-8c89-fce6ea5d5585",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9592adbf-67d4-4cd5-b8d9-141dbf3bd2dc": {
                  "icon": "https://raw.githubusercontent.com/evidence-dev/media-kit/main/svg/logo-square-white-on-transparent.svg",
                  "name": "evidence",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/evidence-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the front proxy listens on",
                      "defaultValue": "3000"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Superuser URL used only for boot bootstrap",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EVIDENCE_DB_HOST": {
                      "isOptional": false,
                      "description": "Warehouse private hostname",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "EVIDENCE_DB_NAME": {
                      "isOptional": false,
                      "description": "Warehouse database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "EVIDENCE_DB_USER": {
                      "isOptional": false,
                      "description": "Read-only role Evidence connects as",
                      "defaultValue": "evidence_reader"
                    },
                    "EVIDENCE_BOOTSTRAP": {
                      "description": "Seed sample data and reader role at boot",
                      "defaultValue": "1"
                    },
                    "EVIDENCE_BASIC_USER": {
                      "isOptional": false,
                      "description": "HTTP basic auth username for the site",
                      "defaultValue": "analyst"
                    },
                    "EVIDENCE_DB_SSLMODE": {
                      "isOptional": false,
                      "description": "TLS mode used to reach the warehouse",
                      "defaultValue": "require"
                    },
                    "EVIDENCE_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the read-only warehouse role",
                      "defaultValue": "{{EVIDENCE_DB_PASSWORD}}"
                    },
                    "EVIDENCE_BASIC_PASSWORD": {
                      "isOptional": false,
                      "description": "HTTP basic auth password for the site",
                      "defaultValue": "{{EVIDENCE_BASIC_PASSWORD}}"
                    },
                    "EVIDENCE_TELEMETRY_DISABLED": {
                      "isOptional": false,
                      "description": "Opt out of anonymous CLI usage reporting",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "a98f5644-9dd9-42a6-9081-e6033ee991db": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "a98f5644-9dd9-42a6-9081-e6033ee991db": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:15:09.891Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d67f965c9ed640efa84a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 156,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "evidence"
  }
}
