{
  "manifest_version": "1.0.0",
  "template": {
    "id": "486ac118-f5e0-4b7a-baaa-ce6d06ad7ce2",
    "slug": "instant",
    "name": "InstantDB",
    "description": "Realtime database that syncs queries straight to the browser",
    "url": "https://railway.com/deploy/instant",
    "upstream": {
      "image": "ghcr.io/instantdb/dashboard:latest"
    }
  },
  "services": [
    {
      "name": "dashboard",
      "source": {
        "image": "ghcr.io/instantdb/dashboard:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "server",
      "source": {
        "image": "ghcr.io/instantdb/server:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/resources/config",
      "http": true
    },
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/instantdb/postgresql:postgresql-17-pg-hint-plan"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Next.js listening port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "dashboard",
      "description": "Bind address for the Next.js server",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "INSTANT_BACKEND_URL",
      "service": "dashboard",
      "description": "API origin handed to the browser",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_TELEMETRY_DISABLED",
      "service": "dashboard",
      "description": "Disable Next.js telemetry",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PORT",
      "service": "server",
      "description": "HTTP and websocket listening port",
      "secret": false,
      "strategy": "default",
      "default": "8888"
    },
    {
      "key": "JAVA_OPTS",
      "service": "server",
      "description": "Cap JVM heap and thread pools",
      "secret": false,
      "strategy": "default",
      "default": "-XX:ActiveProcessorCount=8 -XX:MaxRAMPercentage=70"
    },
    {
      "key": "S3_BUCKET",
      "service": "server",
      "description": "Bucket holding uploaded files",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_REGION",
      "service": "server",
      "description": "SigV4 signing region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "server",
      "description": "S3 endpoint used server-side",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "server",
      "description": "Private Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AWS_ACCESS_KEY_ID",
      "service": "server",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_PUBLIC_ENDPOINT",
      "service": "server",
      "description": "Origin used to presign downloads",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTANT_BACKEND_URL",
      "service": "server",
      "description": "Public API origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "WAL_HISTORY_STORAGE",
      "service": "server",
      "description": "Keep WAL history in Postgres",
      "secret": false,
      "strategy": "default",
      "default": "pg"
    },
    {
      "key": "CONNECTION_POOL_SIZE",
      "service": "server",
      "description": "JDBC connections per instance",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "AWS_SECRET_ACCESS_KEY",
      "service": "server",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "INSTANT_DASHBOARD_URL",
      "service": "server",
      "description": "Public dashboard origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "server",
      "description": "First-boot migration window",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "server",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PGDATA",
      "service": "postgres",
      "description": "Cluster location, one level below the mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "instant"
    },
    {
      "key": "DATABASE_URL",
      "service": "postgres",
      "description": "Private connection string, literal host so it resolves on a first deploy",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "instant"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "instant"
      }
    },
    "cli": "railway deploy --template instant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "486ac118-f5e0-4b7a-baaa-ce6d06ad7ce2",
            "serializedConfig": {
              "buckets": {
                "c7f3659c-ff87-4bf8-9563-50917de6b717": {
                  "name": "instant-storage"
                }
              },
              "services": {
                "e7c614e3-f241-4030-bc61-bdd463f1e16a": {
                  "icon": "https://raw.githubusercontent.com/instantdb/instant/main/client/www/public/img/icon/logo-512.svg",
                  "name": "dashboard",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/dash",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/instantdb/dashboard:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Next.js listening port",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Bind address for the Next.js server",
                      "defaultValue": "0.0.0.0"
                    },
                    "INSTANT_BACKEND_URL": {
                      "isOptional": false,
                      "description": "API origin handed to the browser",
                      "defaultValue": "https://${{server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_TELEMETRY_DISABLED": {
                      "isOptional": false,
                      "description": "Disable Next.js telemetry",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "ed845012-5124-4c8e-b155-c3a0c5d4d2f7": {
                  "icon": "https://raw.githubusercontent.com/instantdb/instant/main/client/www/public/img/icon/logo-512.svg",
                  "name": "server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health/system",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/instantdb/server:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP and websocket listening port",
                      "defaultValue": "8888"
                    },
                    "JAVA_OPTS": {
                      "isOptional": false,
                      "description": "Cap JVM heap and thread pools",
                      "defaultValue": "-XX:ActiveProcessorCount=8 -XX:MaxRAMPercentage=70"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket holding uploaded files",
                      "defaultValue": "${{instant-storage.BUCKET}}"
                    },
                    "AWS_REGION": {
                      "isOptional": false,
                      "description": "SigV4 signing region",
                      "defaultValue": "us-east-1"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint used server-side",
                      "defaultValue": "${{instant-storage.ENDPOINT}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private Postgres connection string",
                      "defaultValue": "${{postgres.DATABASE_URL}}"
                    },
                    "RESEND_TOKEN": {
                      "isOptional": true,
                      "description": "Optional; sends login codes via Resend",
                      "defaultValue": ""
                    },
                    "POSTMARK_TOKEN": {
                      "isOptional": true,
                      "description": "Optional; sends login codes via Postmark",
                      "defaultValue": ""
                    },
                    "SENDGRID_TOKEN": {
                      "isOptional": true,
                      "description": "Optional; sends login codes via SendGrid",
                      "defaultValue": ""
                    },
                    "STRIPE_API_KEY": {
                      "isOptional": true,
                      "description": "Optional; billing integration",
                      "defaultValue": ""
                    },
                    "AWS_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{instant-storage.ACCESS_KEY_ID}}"
                    },
                    "S3_PUBLIC_ENDPOINT": {
                      "isOptional": false,
                      "description": "Origin used to presign downloads",
                      "defaultValue": "${{instant-storage.ENDPOINT}}"
                    },
                    "INSTANT_BACKEND_URL": {
                      "isOptional": false,
                      "description": "Public API origin",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "WAL_HISTORY_STORAGE": {
                      "isOptional": false,
                      "description": "Keep WAL history in Postgres",
                      "defaultValue": "pg"
                    },
                    "CONNECTION_POOL_SIZE": {
                      "isOptional": false,
                      "description": "JDBC connections per instance",
                      "defaultValue": "20"
                    },
                    "AWS_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{instant-storage.SECRET_ACCESS_KEY}}"
                    },
                    "INSTANT_DASHBOARD_URL": {
                      "isOptional": false,
                      "description": "Public dashboard origin",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "INSTANT_EMAIL_PROVIDER": {
                      "isOptional": true,
                      "description": "Optional; picks provider when several are set",
                      "defaultValue": ""
                    },
                    "INSTANT_SUPERUSER_EMAIL": {
                      "isOptional": true,
                      "description": "Optional; operator account for deployment settings",
                      "defaultValue": ""
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First-boot migration window",
                      "defaultValue": "600"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    },
                    "INSTANT_DASHBOARD_GOOGLE_OAUTH_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Optional; Google sign-in client id",
                      "defaultValue": ""
                    },
                    "INSTANT_DASHBOARD_GOOGLE_OAUTH_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Optional; Google sign-in secret",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8888": {
                        "port": 8888
                      }
                    }
                  },
                  "volumeMounts": {
                    "ed845012-5124-4c8e-b155-c3a0c5d4d2f7": {
                      "mountPath": "/app/resources/config"
                    }
                  }
                },
                "fd395ab0-5bf8-41f7-90a4-bb738f56f247": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "postgres",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh postgres -c wal_level=logical -c max_replication_slots=10 -c max_wal_senders=10 -c shared_preload_libraries=pg_hint_plan -c random_page_cost=1.1 -c dynamic_shared_memory_type=mmap -c shared_buffers=1GB -c effective_cache_size=3GB -c max_connections=200",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/instantdb/postgresql:postgresql-17-pg-hint-plan"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location, one level below the mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "instant"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string, literal host so it resolves on a first deploy",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@postgres.railway.internal:5432/${{POSTGRES_DB}}?sslmode=disable"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "instant"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "fd395ab0-5bf8-41f7-90a4-bb738f56f247": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dashboard",
      "method": "GET",
      "path": "/dash",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-09T22:14:39.753Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T19:34:09.565Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0381bb4d9ab44c44b5f9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
