{
  "manifest_version": "1.0.0",
  "template": {
    "id": "72ec7e22-f2c6-4d6c-a9c4-cc31f4ed3588",
    "slug": "supabase-or-just-updated-firebase-altern",
    "name": "Supabase | (Just Updated) Firebase Alternative, No Keys To Paste, Data Survives Redeploys",
    "description": "Postgres, auth, storage, realtime and Studio. No keys to paste.",
    "url": "https://railway.com/deploy/supabase-or-just-updated-firebase-altern",
    "upstream": {
      "image": "ghcr.io/bon5co/supabase-railway-gateway:caddy2"
    }
  },
  "services": [
    {
      "name": "meta",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-meta:0.99.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "storage",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-storage:1.74.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/storage",
      "http": false
    },
    {
      "name": "rest",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-rest:14.17"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "studio",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-studio:2026.09.07"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/snippets",
      "http": false
    },
    {
      "name": "auth",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-auth:2.196.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "realtime",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-realtime:2.134.10"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "db",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-db:17.6.1.136"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "image": "ghcr.io/bon5co/supabase-railway-gateway:caddy2"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CRYPTO_KEY",
      "service": "meta",
      "description": "Provide a value for CRYPTO_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PG_META_DB_HOST",
      "service": "meta",
      "description": "Provide a value for PG_META_DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PG_META_DB_PASSWORD",
      "service": "meta",
      "description": "Provide a value for PG_META_DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "storage",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AUTH_JWT_SECRET",
      "service": "storage",
      "description": "Provide a value for AUTH_JWT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "STORAGE_PUBLIC_URL",
      "service": "storage",
      "description": "Provide a value for STORAGE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_PROTOCOL_ACCESS_KEY_ID",
      "service": "storage",
      "description": "Provide a value for S3_PROTOCOL_ACCESS_KEY_ID.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_PROTOCOL_ACCESS_KEY_SECRET",
      "service": "storage",
      "description": "Provide a value for S3_PROTOCOL_ACCESS_KEY_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGRST_DB_URI",
      "service": "rest",
      "description": "Provide a value for PGRST_DB_URI.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGRST_JWT_SECRET",
      "service": "rest",
      "description": "Provide a value for PGRST_JWT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPABASE_URL",
      "service": "studio",
      "description": "Provide a value for SUPABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "studio",
      "description": "Provide a value for POSTGRES_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AUTH_JWT_SECRET",
      "service": "studio",
      "description": "Provide a value for AUTH_JWT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "studio",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PG_META_CRYPTO_KEY",
      "service": "studio",
      "description": "Provide a value for PG_META_CRYPTO_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SUPABASE_PUBLIC_URL",
      "service": "studio",
      "description": "Provide a value for SUPABASE_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOTRUE_SITE_URL",
      "service": "auth",
      "description": "Provide a value for GOTRUE_SITE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_EXTERNAL_URL",
      "service": "auth",
      "description": "Provide a value for API_EXTERNAL_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOTRUE_JWT_ISSUER",
      "service": "auth",
      "description": "Provide a value for GOTRUE_JWT_ISSUER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOTRUE_JWT_SECRET",
      "service": "auth",
      "description": "Provide a value for GOTRUE_JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GOTRUE_DB_DATABASE_URL",
      "service": "auth",
      "description": "Provide a value for GOTRUE_DB_DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_HOST",
      "service": "realtime",
      "description": "Provide a value for DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_ENC_KEY",
      "service": "realtime",
      "description": "Provide a value for DB_ENC_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DB_PASSWORD",
      "service": "realtime",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "API_JWT_SECRET",
      "service": "realtime",
      "description": "Provide a value for API_JWT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRET_KEY_BASE",
      "service": "realtime",
      "description": "Provide a value for SECRET_KEY_BASE.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "METRICS_JWT_SECRET",
      "service": "realtime",
      "description": "Provide a value for METRICS_JWT_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DASHBOARD_PASSWORD",
      "service": "gateway",
      "description": "Provide a value for DASHBOARD_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "supabase-or-just-updated-firebase-altern"
      }
    },
    "cli": "railway deploy --template supabase-or-just-updated-firebase-altern",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "72ec7e22-f2c6-4d6c-a9c4-cc31f4ed3588",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3f53fbfd-bbcd-4350-a6af-e9385f92ab50": {
                  "icon": null,
                  "name": "meta",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-meta:0.99.0"
                  },
                  "variables": {
                    "CRYPTO_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{CRYPTO_KEY}}"
                    },
                    "PG_META_DB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PG_META_DB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{db.POSTGRES_PASSWORD}}"
                    }
                  }
                },
                "45a39b52-5d9d-4228-b586-660475c288b0": {
                  "icon": null,
                  "name": "storage",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-storage:1.74.0"
                  },
                  "variables": {
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://supabase_storage_admin:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "AUTH_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{auth.GOTRUE_JWT_SECRET}}"
                    },
                    "STORAGE_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    },
                    "S3_PROTOCOL_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "defaultValue": "{{S3_PROTOCOL_ACCESS_KEY_ID}}"
                    },
                    "S3_PROTOCOL_ACCESS_KEY_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{S3_PROTOCOL_ACCESS_KEY_SECRET}}"
                    }
                  },
                  "volumeMounts": {
                    "45a39b52-5d9d-4228-b586-660475c288b0": {
                      "mountPath": "/var/lib/storage"
                    }
                  }
                },
                "a1236b64-e328-44bc-a87c-635a155ceb3a": {
                  "icon": null,
                  "name": "rest",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-rest:14.17"
                  },
                  "variables": {
                    "PGRST_DB_URI": {
                      "isOptional": false,
                      "defaultValue": "postgres://authenticator:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "PGRST_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{auth.GOTRUE_JWT_SECRET}}"
                    }
                  }
                },
                "b06205ef-d09e-4b5e-a966-f4c766c416e2": {
                  "icon": null,
                  "name": "studio",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-studio:2026.09.07"
                  },
                  "variables": {
                    "SUPABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "AUTH_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{auth.GOTRUE_JWT_SECRET}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{db.POSTGRES_PASSWORD}}"
                    },
                    "PG_META_CRYPTO_KEY": {
                      "isOptional": false,
                      "defaultValue": "${{meta.CRYPTO_KEY}}"
                    },
                    "SUPABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    }
                  },
                  "volumeMounts": {
                    "b06205ef-d09e-4b5e-a966-f4c766c416e2": {
                      "mountPath": "/app/snippets"
                    }
                  }
                },
                "bcd6eaea-1ce2-4a5b-aadc-ac8a8c1241e7": {
                  "icon": null,
                  "name": "auth",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-auth:2.196.0"
                  },
                  "variables": {
                    "GOTRUE_SITE_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    },
                    "API_EXTERNAL_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    },
                    "GOTRUE_JWT_ISSUER": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_SERVICE_GATEWAY_URL}}"
                    },
                    "GOTRUE_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{GOTRUE_JWT_SECRET}}"
                    },
                    "GOTRUE_DB_DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgres://supabase_auth_admin:${{db.POSTGRES_PASSWORD}}@${{db.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    }
                  }
                },
                "d5f6021a-5aa6-4e02-89d8-d31b680c5e47": {
                  "icon": null,
                  "name": "realtime",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-realtime:2.134.10"
                  },
                  "variables": {
                    "DB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_ENC_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{DB_ENC_KEY}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{db.POSTGRES_PASSWORD}}"
                    },
                    "API_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{auth.GOTRUE_JWT_SECRET}}"
                    },
                    "SECRET_KEY_BASE": {
                      "isOptional": false,
                      "defaultValue": "{{SECRET_KEY_BASE}}"
                    },
                    "METRICS_JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "${{auth.GOTRUE_JWT_SECRET}}"
                    }
                  }
                },
                "d8177dfc-082d-4741-bc34-076a6a3be7de": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-db:17.6.1.136"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "d8177dfc-082d-4741-bc34-076a6a3be7de": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "f92a8901-b080-4198-a79e-0179f5c64431": {
                  "icon": null,
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/supabase-railway-gateway:caddy2"
                  },
                  "variables": {
                    "DASHBOARD_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{DASHBOARD_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 8,
    "needs_volume": true
  },
  "generated_at": "2026-10-09T16:14:44.491Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-09T15:39:01.365Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_90dbcdc2b3544ea6afb8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
