{
  "manifest_version": "1.0.0",
  "template": {
    "id": "087b4726-55e9-4254-918d-f123a36f936f",
    "slug": "buzz-self-hosted",
    "name": "Buzz (Self-Hosted)",
    "description": "Self-host Buzz with PostgreSQL, Redis, S3 and secure mobile pairing.",
    "url": "https://railway.com/deploy/buzz-self-hosted",
    "upstream": {
      "image": "ghcr.io/block/buzz:sha-3e48f1b"
    }
  },
  "services": [
    {
      "name": "Pairing Relay",
      "source": {
        "image": "ghcr.io/block/buzz:sha-3e48f1b"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Buzz Relay",
      "source": {
        "image": "ghcr.io/block/buzz:sha-3e48f1b"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "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": "Pairing Relay",
      "description": "Port used by Railway to expose the pairing relay.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "BUZZ_PAIR_RELAY_BIND_ADDR",
      "service": "Pairing Relay",
      "description": "Address the pairing relay listens on inside the container.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:5000"
    },
    {
      "key": "PORT",
      "service": "Buzz Relay",
      "description": "Internal HTTP and WebSocket port.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "RUST_LOG",
      "service": "Buzz Relay",
      "description": "Rust logging directives for Buzz services.",
      "secret": false,
      "strategy": "default",
      "default": "buzz_relay=info,buzz_db=info,buzz_auth=info,buzz_pubsub=info,tower_http=info"
    },
    {
      "key": "REDIS_URL",
      "service": "Buzz Relay",
      "description": "Private Redis connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RELAY_URL",
      "service": "Buzz Relay",
      "description": "Public WebSocket URL for this relay.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "Buzz Relay",
      "description": "Private PostgreSQL connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUZZ_BIND_ADDR",
      "service": "Buzz Relay",
      "description": "Address and port used by the relay listener.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0:3000"
    },
    {
      "key": "BUZZ_S3_BUCKET",
      "service": "Buzz Relay",
      "description": "Railway bucket name used for media and Git objects.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUZZ_S3_REGION",
      "service": "Buzz Relay",
      "description": "Railway bucket region.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUZZ_S3_ENDPOINT",
      "service": "Buzz Relay",
      "description": "S3-compatible endpoint for the Railway bucket.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUZZ_AUTO_MIGRATE",
      "service": "Buzz Relay",
      "description": "Run database migrations when the relay starts.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUZZ_CORS_ORIGINS",
      "service": "Buzz Relay",
      "description": "Origins allowed to access the relay from browsers and desktop clients.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BUZZ_S3_ACCESS_KEY",
      "service": "Buzz Relay",
      "description": "Access key for the Railway bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BUZZ_S3_SECRET_KEY",
      "service": "Buzz Relay",
      "description": "Secret key for the Railway bucket.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RELAY_OWNER_PUBKEY",
      "service": "Buzz Relay",
      "description": "64-character hexadecimal Nostr public key that owns the relay. Never enter an nsec or private key.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUZZ_MEDIA_BASE_URL",
      "service": "Buzz Relay",
      "description": "Public base URL for media served by the relay.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BUZZ_ALLOW_NIP_OA_AUTH",
      "service": "Buzz Relay",
      "description": "Allow NIP-OA authentication for Buzz clients and agents.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUZZ_PAIRING_RELAY_URL",
      "service": "Buzz Relay",
      "description": "Public WebSocket URL used for secure mobile device pairing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BUZZ_RELAY_PRIVATE_KEY",
      "service": "Buzz Relay",
      "description": "Generated private key used by the relay to sign Nostr events.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUZZ_REQUIRE_AUTH_TOKEN",
      "service": "Buzz Relay",
      "description": "Require authenticated clients to present a valid token.",
      "secret": true,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BUZZ_GIT_HOOK_HMAC_SECRET",
      "service": "Buzz Relay",
      "description": "Generated secret used to authenticate Git hook callbacks.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BUZZ_REQUIRE_RELAY_MEMBERSHIP",
      "service": "Buzz Relay",
      "description": "Restrict relay access to approved community members.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private Redis hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Internal Redis port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis username.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private Redis connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Redis password alias used by Railway integrations.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Generated Redis password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public Redis connection URL for external clients.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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": "Private Postgres hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Internal Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Username used by Railway clients and the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database used by Buzz.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password used by Railway clients and the Data panel.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when Postgres starts.",
      "secret": false,
      "strategy": "default",
      "default": "buzz"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private Postgres connection URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Default Postgres user.",
      "secret": false,
      "strategy": "default",
      "default": "buzz"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate lifetime in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated Postgres password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public Postgres connection URL for external clients.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to shut down cleanly.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "buzz-self-hosted"
      }
    },
    "cli": "railway deploy --template buzz-self-hosted",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "087b4726-55e9-4254-918d-f123a36f936f",
            "serializedConfig": {
              "buckets": {
                "a25321ed-26b5-4383-af1c-20270b752e3e": {
                  "name": "Media"
                }
              },
              "services": {
                "6ca9db1c-a5c1-46fb-b6bd-4b0f551773bd": {
                  "icon": "https://raw.githubusercontent.com/block/buzz/refs/heads/main/web/src/assets/app-icon@3x.png",
                  "name": "Pairing Relay",
                  "deploy": {
                    "startCommand": "/usr/local/bin/buzz-pair-relay"
                  },
                  "source": {
                    "image": "ghcr.io/block/buzz:sha-3e48f1b"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by Railway to expose the pairing relay.",
                      "defaultValue": "5000"
                    },
                    "BUZZ_PAIR_RELAY_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Address the pairing relay listens on inside the container.",
                      "defaultValue": "0.0.0.0:5000"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  }
                },
                "79bcaac4-b36b-4a9b-9543-cdf5eee3463f": {
                  "icon": "https://raw.githubusercontent.com/block/buzz/refs/heads/main/web/src/assets/app-icon@3x.png",
                  "name": "Buzz Relay",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/_readiness",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/block/buzz:sha-3e48f1b"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal HTTP and WebSocket port.",
                      "defaultValue": "3000"
                    },
                    "RUST_LOG": {
                      "isOptional": false,
                      "description": "Rust logging directives for Buzz services.",
                      "defaultValue": "buzz_relay=info,buzz_db=info,buzz_auth=info,buzz_pubsub=info,tower_http=info"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection URL.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "RELAY_URL": {
                      "isOptional": false,
                      "description": "Public WebSocket URL for this relay.",
                      "defaultValue": "wss://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection URL.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "BUZZ_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Address and port used by the relay listener.",
                      "defaultValue": "0.0.0.0:3000"
                    },
                    "BUZZ_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Railway bucket name used for media and Git objects.",
                      "defaultValue": "${{Media.BUCKET}}"
                    },
                    "BUZZ_S3_REGION": {
                      "isOptional": false,
                      "description": "Railway bucket region.",
                      "defaultValue": "${{Media.REGION}}"
                    },
                    "BUZZ_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3-compatible endpoint for the Railway bucket.",
                      "defaultValue": "${{Media.ENDPOINT}}"
                    },
                    "BUZZ_AUTO_MIGRATE": {
                      "isOptional": false,
                      "description": "Run database migrations when the relay starts.",
                      "defaultValue": "true"
                    },
                    "BUZZ_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Origins allowed to access the relay from browsers and desktop clients.",
                      "defaultValue": "tauri://localhost,http://tauri.localhost,https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BUZZ_S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Access key for the Railway bucket.",
                      "defaultValue": "${{Media.ACCESS_KEY_ID}}"
                    },
                    "BUZZ_S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key for the Railway bucket.",
                      "defaultValue": "${{Media.SECRET_ACCESS_KEY}}"
                    },
                    "RELAY_OWNER_PUBKEY": {
                      "isOptional": false,
                      "description": "64-character hexadecimal Nostr public key that owns the relay. Never enter an nsec or private key.",
                      "defaultValue": "{{RELAY_OWNER_PUBKEY}}"
                    },
                    "BUZZ_MEDIA_BASE_URL": {
                      "isOptional": false,
                      "description": "Public base URL for media served by the relay.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/media"
                    },
                    "BUZZ_ALLOW_NIP_OA_AUTH": {
                      "isOptional": false,
                      "description": "Allow NIP-OA authentication for Buzz clients and agents.",
                      "defaultValue": "true"
                    },
                    "BUZZ_PAIRING_RELAY_URL": {
                      "isOptional": false,
                      "description": "Public WebSocket URL used for secure mobile device pairing.",
                      "defaultValue": "wss://${{Pairing Relay.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BUZZ_RELAY_PRIVATE_KEY": {
                      "isOptional": false,
                      "description": "Generated private key used by the relay to sign Nostr events.",
                      "defaultValue": "{{BUZZ_RELAY_PRIVATE_KEY}}"
                    },
                    "BUZZ_REQUIRE_AUTH_TOKEN": {
                      "isOptional": false,
                      "description": "Require authenticated clients to present a valid token.",
                      "defaultValue": "true"
                    },
                    "BUZZ_GIT_HOOK_HMAC_SECRET": {
                      "isOptional": false,
                      "description": "Generated secret used to authenticate Git hook callbacks.",
                      "defaultValue": "{{BUZZ_GIT_HOOK_HMAC_SECRET}}"
                    },
                    "BUZZ_REQUIRE_RELAY_MEMBERSHIP": {
                      "isOptional": false,
                      "description": "Restrict relay access to approved community members.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "967bb7fb-1d8e-452f-8557-59a5a0427222": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private Redis hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Internal Redis port.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis username.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private Redis connection URL.",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Redis password alias used by Railway integrations.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Redis password.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Redis connection URL for external clients.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "967bb7fb-1d8e-452f-8557-59a5a0427222": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "a11eb928-b464-49f6-8a56-7638ae470d75": {
                  "icon": "https://devicons.railway.app/i/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": "Location where the database will be initialized.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private Postgres hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Internal Postgres port.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Username used by Railway clients and the Data panel.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database used by Buzz.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password used by Railway clients and the Data panel.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when Postgres starts.",
                      "defaultValue": "buzz"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private Postgres connection URL.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Default Postgres user.",
                      "defaultValue": "buzz"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate lifetime in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated Postgres password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public Postgres connection URL for external clients.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to shut down cleanly.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "a11eb928-b464-49f6-8a56-7638ae470d75": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Buzz Relay",
      "method": "GET",
      "path": "/_readiness",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-08T19:39:59.977Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0e2d6117ddbd48389484",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,SUCCESS,FAILED,SUCCESS"
      }
    ]
  }
}
