{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6b2b2f09-10f4-456f-b83b-c559d6c2ec9e",
    "slug": "supabase-postgres-1",
    "name": "Supabase Postgres",
    "description": "Supabase Postgres with 50+ extensions and optimized defaults",
    "url": "https://railway.com/deploy/supabase-postgres-1",
    "upstream": {
      "image": "supabase/postgres:17.6.1.056"
    }
  },
  "services": [
    {
      "name": "Supabase Postgres",
      "source": {
        "image": "supabase/postgres:17.6.1.056"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGHOST",
      "service": "Supabase Postgres",
      "description": "Listen on all interfaces; do not change.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PGPORT",
      "service": "Supabase Postgres",
      "description": "Listen on the standard postgresql port; do not change",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Supabase Postgres",
      "description": "Reference for Railway Internals; do not change",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Supabase Postgres",
      "description": "Reference for Railway Internals; do not change",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Supabase Postgres",
      "description": "Reference for Railway Internals; do not change",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Supabase Postgres",
      "description": "Default database name; change as you'd like",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Supabase Postgres",
      "description": "The internal database URL for use within your services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Supabase Postgres",
      "description": "postgres user name; change as needed",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Supabase Postgres",
      "description": "The password for the default user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Supabase Postgres",
      "description": "The public URL for your database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Supabase Postgres",
      "description": "The private URL for your database; references DATABASE_URL for convenience",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "supabase-postgres-1"
      }
    },
    "cli": "railway deploy --template supabase-postgres-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6b2b2f09-10f4-456f-b83b-c559d6c2ec9e",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "afcea554-9fa4-4661-80a8-8bb2255c99fe": {
                  "icon": "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Ffreepnglogo.com%2Fimages%2Fall_img%2Fpostgresql-logo-e3e7.png&f=1&nofb=1&ipt=ded5baa41b89af56d96c0d0407020fe7238d699f7ddf16fa1ea6122be373285c",
                  "name": "Supabase Postgres",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh -c config_file=/etc/postgresql/postgresql.conf -c log_destination=jsonlog",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "supabase/postgres:17.6.1.056"
                  },
                  "variables": {
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Listen on all interfaces; do not change.",
                      "defaultValue": "0.0.0.0"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Listen on the standard postgresql port; do not change",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Reference for Railway Internals; do not change",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Reference for Railway Internals; do not change",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Reference for Railway Internals; do not change",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database name; change as you'd like",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "The internal database URL for use within your services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{PGPASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:${{PGPORT}}/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "postgres user name; change as needed",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "The password for the default user",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "The public URL for your database",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "The private URL for your database; references DATABASE_URL for convenience",
                      "defaultValue": "${{\"Supabase Postgres\".DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "afcea554-9fa4-4661-80a8-8bb2255c99fe": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T04:14:46.774Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T00:19:39.663Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7bdd462e72a64296a967",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 92,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "Supabase Postgres"
  }
}
