{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ce9cfed3-5887-4dd5-8c03-57cd95f60410",
    "slug": "blazer",
    "name": "Blazer | SQL Dashboards, Charts & Alerts for Your Database",
    "description": "Blazer 3.5: SQL queries, charts, dashboards and alerts on your database",
    "url": "https://railway.com/deploy/blazer",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/blazer"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Blazer",
      "source": {
        "repo": "https://github.com/two-workspaces/blazer"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "blazer"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Blazer",
      "description": "Port Blazer listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "DATABASE_URL",
      "service": "Blazer",
      "description": "Blazer's own database (queries, dashboards, checks) - leave as is",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLAZER_PASSWORD",
      "service": "Blazer",
      "description": "Sign-in password (HTTP basic auth)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BLAZER_USERNAME",
      "service": "Blazer",
      "description": "Sign-in name (HTTP basic auth)",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "Blazer",
      "description": "Rails secret - leave as is",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BLAZER_TIME_ZONE",
      "service": "Blazer",
      "description": "Time zone for dates in results, e.g. Europe/Berlin",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "blazer"
      }
    },
    "cli": "railway deploy --template blazer",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ce9cfed3-5887-4dd5-8c03-57cd95f60410",
            "serializedConfig": {
              "services": {
                "dd130352-6b5e-4a70-a8cb-10df2f86ecdd": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "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": "blazer"
                    },
                    "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}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "dd130352-6b5e-4a70-a8cb-10df2f86ecdd": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ef297d68-1d25-4822-91c1-61c1df46db97": {
                  "icon": "https://raw.githubusercontent.com/ankane/blazer/refs/heads/master/app/assets/images/blazer/favicon.png",
                  "name": "Blazer",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/blazer",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Blazer listens on - leave as is",
                      "defaultValue": "8080"
                    },
                    "SMTP_URL": {
                      "isOptional": true,
                      "description": "For check emails: smtp://user:password@host:587 (outbound SMTP needs Railway Pro)",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Blazer's own database (queries, dashboards, checks) - leave as is",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "BLAZER_PASSWORD": {
                      "isOptional": false,
                      "description": "Sign-in password (HTTP basic auth)",
                      "defaultValue": "{{BLAZER_PASSWORD}}"
                    },
                    "BLAZER_USERNAME": {
                      "isOptional": false,
                      "description": "Sign-in name (HTTP basic auth)",
                      "defaultValue": "admin"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "description": "Rails secret - leave as is",
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "BLAZER_TIME_ZONE": {
                      "isOptional": true,
                      "description": "Time zone for dates in results, e.g. Europe/Berlin",
                      "defaultValue": "Etc/UTC"
                    },
                    "BLAZER_FROM_EMAIL": {
                      "isOptional": true,
                      "description": "Sender address for check emails",
                      "defaultValue": ""
                    },
                    "BLAZER_DATABASE_URL": {
                      "isOptional": true,
                      "description": "The database to query, e.g. ${{Postgres.DATABASE_URL}} of your app. Empty = Blazer's own database. Add more as BLAZER_DATABASE_URL_<NAME>",
                      "defaultValue": ""
                    },
                    "BLAZER_SLACK_WEBHOOK_URL": {
                      "isOptional": true,
                      "description": "Slack incoming webhook for check alerts",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Blazer",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-07T16:15:10.050Z",
  "generator_version": "0.1.0"
}
