{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9c84bc68-b8c3-4d91-8da0-69cc230c99d8",
    "slug": "typebot-updated-jul-26",
    "name": "Typebot [Updated Sep '26]",
    "description": "Typebot [Sep '26] (Visual Chatbot Builder & Conversational AI) Self Host",
    "url": "https://railway.com/deploy/typebot-updated-jul-26",
    "upstream": {
      "image": "minio/minio:RELEASE.2025-09-07T16-13-09Z"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "minio",
      "source": {
        "image": "minio/minio:RELEASE.2025-09-07T16-13-09Z"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "typebot-railway",
      "source": {
        "repo": "https://github.com/shruti060701/typebot-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "minio-bucket-creator",
      "source": {
        "image": "minio/mc:RELEASE.2025-08-13T08-35-41Z"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "fearless-balance",
      "source": {
        "repo": "https://github.com/shruti060701/typebot-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "valkey",
      "source": {
        "image": "valkey/valkey:9.1.1-alpine3.24"
      },
      "needs_volume": false,
      "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": "minio",
      "description": "image-based services (no Dockerfile) have no way for Railway to know which port to route a public domain to without this being set explicitly. Without it, the public domain returns a `502` with an `x-railway-fallback: true` header, which looks like a generic platform error rather than an obvious missing-config problem.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "minio",
      "description": "MinIO admin username.",
      "secret": false,
      "strategy": "default",
      "default": "minioadmin"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "minio",
      "description": "Password for the MinIO admin account. Auto-generated fresh for each deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "typebot-railway",
      "description": "Must be pinned explicitly — Railway's own auto-injected `PORT` (commonly 8080) silently overrides the Docker image's internal default, causing a port mismatch if not set here.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SCOPE",
      "service": "typebot-railway",
      "description": "Set the correct scope, used when deploying from the repository",
      "secret": false,
      "strategy": "default",
      "default": "builder"
    },
    {
      "key": "S3_SSL",
      "service": "typebot-railway",
      "description": "Railway domains are HTTPS-only.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "S3_PORT",
      "service": "typebot-railway",
      "description": "S3 Host port number",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "HOSTNAME",
      "service": "typebot-railway",
      "description": "without this, the app binds to loopback only and Railway's healthcheck can never reach it, even though the app logs \"Ready.\" Found the hard way this session.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "S3_BUCKET",
      "service": "typebot-railway",
      "description": "Bucket name created by `minio-bucket-creator`",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "typebot-railway",
      "description": "Public MinIO domain for serving uploaded media. Must be MinIO's public domain, not the private/internal one — bots need to send uploaded media back to users outside Railway's network, not just reach it internally.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "typebot-railway",
      "description": "PostgreSQL connection string for bot data and user accounts",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "typebot-railway",
      "description": "Public URL of this service, used for auth callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "typebot-railway",
      "description": "MinIO access key for media uploads. Live reference, not a copied value — MinIO's credentials can be regenerated independently.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "typebot-railway",
      "description": "MinIO secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "typebot-railway",
      "description": "Disable new user sign ups. Invited users are still able to sign up",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "typebot-railway",
      "description": "Session encryption key for NextAuth",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_CLIENT_ID",
      "service": "typebot-railway",
      "description": "Required to log in — Typebot has no default login method.  Step 1: Go to github.com/settings/developers → click \"New OAuth App\" Step 2: Application name — put anything, e.g. \"My Typebot\" Step 3: Homepage URL — you won't have your Railway domain yet, so put a placeholder like https://example.com Step 4: Authorization callback URL — same placeholder + path: https://example.com/api/auth/callback/github Step 5: Click \"Register application\" — GitHub shows you the Client ID immediately. Paste it here. Step 6: After this deploys, come back to this OAuth App's settings and update the Homepage URL and callback URL to your real Railway domain.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "typebot-railway",
      "description": "Encrypts sensitive bot data. **Must be identical to the same variable on `fearless-balance`** — if they differ, bots and data become unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GITHUB_CLIENT_SECRET",
      "service": "typebot-railway",
      "description": "Pairs with GITHUB_CLIENT_ID from the same OAuth App.  Step 1: On the same OAuth App page (right after registering it in the steps above), find \"Client secrets\" Step 2: Click \"Generate a new client secret\" Step 3: Copy the value immediately — GitHub only shows it once, you can't view it again later Step 4: Paste it here",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DEFAULT_WORKSPACE_PLAN",
      "service": "typebot-railway",
      "description": "Default workspace plan on user creation or when a user creates a new workspace. Possible values are FREE, STARTER, PRO, LIFETIME, UNLIMITED",
      "secret": false,
      "strategy": "default",
      "default": "UNLIMITED"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "typebot-railway",
      "description": "Public URL of the Viewer service, where published bots are rendered.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "typebot-railway",
      "description": "Path to this service's Dockerfile. This repo has separate Dockerfile.builder and Dockerfile.viewer files instead of one plain Dockerfile — without this, the build fails with \"couldn't locate a dockerfile at path Dockerfile.\"",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.builder"
    },
    {
      "key": "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE",
      "service": "typebot-railway",
      "description": "Limits the size of each file in megabytes that can be uploaded in the bots",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "MINIO_ROOT_USER",
      "service": "minio-bucket-creator",
      "description": "Live reference to MinIO's credentials, not a copy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MINIO_ROOT_PASSWORD",
      "service": "minio-bucket-creator",
      "description": "Live reference to MinIO's credentials, not a copy.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "fearless-balance",
      "description": "The port the Typebot viewer listens on internally.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SCOPE",
      "service": "fearless-balance",
      "description": "Set the correct scope, used when deploying from the repository",
      "secret": false,
      "strategy": "default",
      "default": "viewer"
    },
    {
      "key": "S3_SSL",
      "service": "fearless-balance",
      "description": "Railway domains are HTTPS-only.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "S3_PORT",
      "service": "fearless-balance",
      "description": "S3 Host port number",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "HOSTNAME",
      "service": "fearless-balance",
      "description": "without this, the app binds to loopback only and Railway's healthcheck can never reach it, even though the app logs \"Ready.\" Found the hard way this session.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "S3_BUCKET",
      "service": "fearless-balance",
      "description": "Bucket name created by `minio-bucket-creator`.",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "fearless-balance",
      "description": "Must be MinIO's **public** domain, not the private one — uploaded media needs to be servable back to end users chatting with the bot, not just reachable internally.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "fearless-balance",
      "description": "PostgreSQL connection string for bot data and user accounts.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "fearless-balance",
      "description": "Public URL of this service, used for auth callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "fearless-balance",
      "description": "MinIO access key for media uploads. Live reference, not a copied value — MinIO's credentials can be regenerated independently.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "fearless-balance",
      "description": "MinIO secret key.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "fearless-balance",
      "description": "Session encryption key for NextAuth.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "fearless-balance",
      "description": "Public URL of this service, used for auth callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "fearless-balance",
      "description": "Path to this service's Dockerfile. This repo has separate Dockerfile.builder and Dockerfile.viewer files instead of one plain Dockerfile — this service uses Dockerfile.viewer, not the builder's file. Without this, the build fails with \"couldn't locate a dockerfile at path Dockerfile.\"",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.viewer"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data files.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Username reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name reference.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password reference.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name (Railway's own default, not `typebot` — the app doesn't care what it's named).",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "For external access outside Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser username.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity period.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated superuser password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "For external access outside Railway.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for active connections to finish before a redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typebot-updated-jul-26"
      }
    },
    "cli": "railway deploy --template typebot-updated-jul-26",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9c84bc68-b8c3-4d91-8da0-69cc230c99d8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2a139c5c-e348-4f4e-afe9-f29c3207af54": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "name": "minio",
                  "deploy": {
                    "startCommand": "minio server /data --console-address \":9001\"",
                    "healthcheckPath": "/minio/health/live",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "minio/minio:RELEASE.2025-09-07T16-13-09Z"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "image-based services (no Dockerfile) have no way for Railway to know which port to route a public domain to without this being set explicitly. Without it, the public domain returns a `502` with an `x-railway-fallback: true` header, which looks like a generic platform error rather than an obvious missing-config problem.",
                      "defaultValue": "9000"
                    },
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "MinIO admin username.",
                      "defaultValue": "minioadmin"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the MinIO admin account. Auto-generated fresh for each deployment.",
                      "defaultValue": "{{MINIO_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "2a139c5c-e348-4f4e-afe9-f29c3207af54": {
                      "mountPath": "/data"
                    }
                  }
                },
                "539ffb2b-9f24-41fa-87b3-24e1646e2a94": {
                  "icon": "https://raw.githubusercontent.com/baptisteArno/typebot.io/b0d1b113259c4e820f0b5e45d3b2d45df5776513/apps/docs/static/img/logo.svg",
                  "name": "typebot-railway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/signin",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/typebot-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Must be pinned explicitly — Railway's own auto-injected `PORT` (commonly 8080) silently overrides the Docker image's internal default, causing a port mismatch if not set here.",
                      "defaultValue": "3000"
                    },
                    "SCOPE": {
                      "isOptional": false,
                      "description": "Set the correct scope, used when deploying from the repository",
                      "defaultValue": "builder"
                    },
                    "S3_SSL": {
                      "isOptional": false,
                      "description": "Railway domains are HTTPS-only.",
                      "defaultValue": "true"
                    },
                    "S3_PORT": {
                      "isOptional": false,
                      "description": "S3 Host port number",
                      "defaultValue": "443"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "without this, the app binds to loopback only and Railway's healthcheck can never reach it, even though the app logs \"Ready.\" Found the hard way this session.",
                      "defaultValue": "0.0.0.0"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name created by `minio-bucket-creator`",
                      "defaultValue": "typebot"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public MinIO domain for serving uploaded media. Must be MinIO's public domain, not the private/internal one — bots need to send uploaded media back to users outside Railway's network, not just reach it internally.",
                      "defaultValue": "${{minio.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string for bot data and user accounts",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of this service, used for auth callbacks.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "MinIO access key for media uploads. Live reference, not a copied value — MinIO's credentials can be regenerated independently.",
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "MinIO secret key.",
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Disable new user sign ups. Invited users are still able to sign up",
                      "defaultValue": "false"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Session encryption key for NextAuth",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "GITHUB_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Required to log in — Typebot has no default login method.  Step 1: Go to github.com/settings/developers → click \"New OAuth App\" Step 2: Application name — put anything, e.g. \"My Typebot\" Step 3: Homepage URL — you won't have your Railway domain yet, so put a placeholder like https://example.com Step 4: Authorization callback URL — same placeholder + path: https://example.com/api/auth/callback/github Step 5: Click \"Register application\" — GitHub shows you the Client ID immediately. Paste it here. Step 6: After this deploys, come back to this OAuth App's settings and update the Homepage URL and callback URL to your real Railway domain.",
                      "defaultValue": "{{GITHUB_CLIENT_ID}}"
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "Encrypts sensitive bot data. **Must be identical to the same variable on `fearless-balance`** — if they differ, bots and data become unreadable.",
                      "defaultValue": "{{ENCRYPTION_SECRET}}"
                    },
                    "GITHUB_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "Pairs with GITHUB_CLIENT_ID from the same OAuth App.  Step 1: On the same OAuth App page (right after registering it in the steps above), find \"Client secrets\" Step 2: Click \"Generate a new client secret\" Step 3: Copy the value immediately — GitHub only shows it once, you can't view it again later Step 4: Paste it here",
                      "defaultValue": "{{GITHUB_CLIENT_SECRET}}"
                    },
                    "DEFAULT_WORKSPACE_PLAN": {
                      "isOptional": false,
                      "description": "Default workspace plan on user creation or when a user creates a new workspace. Possible values are FREE, STARTER, PRO, LIFETIME, UNLIMITED",
                      "defaultValue": "UNLIMITED"
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public URL of the Viewer service, where published bots are rendered.",
                      "defaultValue": "https://${{fearless-balance.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to this service's Dockerfile. This repo has separate Dockerfile.builder and Dockerfile.viewer files instead of one plain Dockerfile — without this, the build fails with \"couldn't locate a dockerfile at path Dockerfile.\"",
                      "defaultValue": "Dockerfile.builder"
                    },
                    "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Limits the size of each file in megabytes that can be uploaded in the bots",
                      "defaultValue": "10"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "7ed872e3-c4f6-465d-9996-8b3462b2c208": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1706062979/MINIO_Bird_vbtpet.png",
                  "name": "minio-bucket-creator",
                  "deploy": {
                    "startCommand": "sh -c 'mc alias set myminio http://minio.railway.internal:9000 \"$MINIO_ROOT_USER\" \"$MINIO_ROOT_PASSWORD\" && mc mb myminio/typebot --ignore-existing && mc anonymous set download myminio/typebot'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "minio/mc:RELEASE.2025-08-13T08-35-41Z"
                  },
                  "variables": {
                    "MINIO_ROOT_USER": {
                      "isOptional": false,
                      "description": "Live reference to MinIO's credentials, not a copy.",
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "MINIO_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Live reference to MinIO's credentials, not a copy.",
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    }
                  }
                },
                "888c8421-de92-4285-97ec-8c4fa7c8f7aa": {
                  "icon": "https://raw.githubusercontent.com/baptisteArno/typebot.io/b0d1b113259c4e820f0b5e45d3b2d45df5776513/apps/docs/static/img/logo.svg",
                  "name": "fearless-balance",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/shruti060701/typebot-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port the Typebot viewer listens on internally.",
                      "defaultValue": "3000"
                    },
                    "SCOPE": {
                      "isOptional": false,
                      "description": "Set the correct scope, used when deploying from the repository",
                      "defaultValue": "viewer"
                    },
                    "S3_SSL": {
                      "isOptional": false,
                      "description": "Railway domains are HTTPS-only.",
                      "defaultValue": "true"
                    },
                    "S3_PORT": {
                      "isOptional": false,
                      "description": "S3 Host port number",
                      "defaultValue": "443"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "without this, the app binds to loopback only and Railway's healthcheck can never reach it, even though the app logs \"Ready.\" Found the hard way this session.",
                      "defaultValue": "0.0.0.0"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name created by `minio-bucket-creator`.",
                      "defaultValue": "typebot"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Must be MinIO's **public** domain, not the private one — uploaded media needs to be servable back to end users chatting with the bot, not just reachable internally.",
                      "defaultValue": "${{minio.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection string for bot data and user accounts.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of this service, used for auth callbacks.",
                      "defaultValue": "https://${{typebot-railway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "MinIO access key for media uploads. Live reference, not a copied value — MinIO's credentials can be regenerated independently.",
                      "defaultValue": "${{minio.MINIO_ROOT_USER}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "MinIO secret key.",
                      "defaultValue": "${{minio.MINIO_ROOT_PASSWORD}}"
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "Session encryption key for NextAuth.",
                      "defaultValue": "${{typebot-railway.ENCRYPTION_SECRET}}"
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public URL of this service, used for auth callbacks.",
                      "defaultValue": "https://${{fearless-balance.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to this service's Dockerfile. This repo has separate Dockerfile.builder and Dockerfile.viewer files instead of one plain Dockerfile — this service uses Dockerfile.viewer, not the builder's file. Without this, the build fails with \"couldn't locate a dockerfile at path Dockerfile.\"",
                      "defaultValue": "Dockerfile.viewer"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "bb3d92eb-1de2-40a3-80aa-52674e919a72": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1713278076/Valkey-logo_yrnlsx.svg",
                  "name": "valkey",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:9.1.1-alpine3.24"
                  },
                  "variables": {}
                },
                "d2377a01-bfea-47fb-894f-214957dc1ee2": {
                  "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": true,
                      "description": "Directory where Postgres stores its data files.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "description": "Port Postgres listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Username reference.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name reference.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password reference.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Default database name (Railway's own default, not `typebot` — the app doesn't care what it's named).",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "For external access outside Railway.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Superuser username.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate validity period.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated superuser password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "For external access outside Railway.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds Railway waits for active connections to finish before a redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "d2377a01-bfea-47fb-894f-214957dc1ee2": {
                      "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": "minio",
      "method": "GET",
      "path": "/minio/health/live",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0"
}
