{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f9015eb0-c05b-449e-90fe-3dd45b7c813f",
    "slug": "PPDzCd",
    "name": "Formbricks",
    "description": "An open source surveys & experience management solution",
    "url": "https://railway.com/deploy/PPDzCd",
    "upstream": {
      "image": "formbricks/formbricks:latest"
    }
  },
  "services": [
    {
      "name": "Formbricks",
      "source": {
        "image": "formbricks/formbricks:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/nextjs/apps/web/uploads/",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MAIL_FROM",
      "service": "Formbricks",
      "description": "Email from address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "WEBAPP_URL",
      "service": "Formbricks",
      "description": "Your public-facing URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CRON_SECRET",
      "service": "Formbricks",
      "description": "API Secret for running cron jobs",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Formbricks",
      "description": "Connects to Postgres over the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Formbricks",
      "description": "Your public-facing URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Formbricks",
      "description": "64 Character key for encryption",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INVITE_DISABLED",
      "service": "Formbricks",
      "description": "Set it to 1 to disable Invites",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "NEXTAUTH_SECRET",
      "service": "Formbricks",
      "description": "Automatically generated Next Auth secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Formbricks",
      "description": "Allow read/write volume access",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SIGNUP_DISABLED",
      "service": "Formbricks",
      "description": "Set it to 1 to disable Signups",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "EMAIL_AUTH_DISABLED",
      "service": "Formbricks",
      "description": "Set it to 1 to disable logging in with email",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "NEXT_PUBLIC_WEBAPP_URL",
      "service": "Formbricks",
      "description": "Your public-facing URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "COREPACK_INTEGRITY_KEYS",
      "service": "Formbricks",
      "description": "Provide a value for COREPACK_INTEGRITY_KEYS.",
      "secret": true,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PASSWORD_RESET_DISABLED",
      "service": "Formbricks",
      "description": "Set to 0 to enable Password Reset",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "PRISMA_GENERATE_DATAPROXY",
      "service": "Formbricks",
      "description": "[Data proxy info](https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "EMAIL_VERIFICATION_DISABLED",
      "service": "Formbricks",
      "description": "Set to 0 to enable Email Verification for new signups",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Formbricks",
      "description": "Provide a value for RAILWAY_HEALTHCHECK_TIMEOUT_SEC.",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "Formbricks",
      "description": "Enables Formbricks to resolve private network domains",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "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": "Public host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Public port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Public URL to connect to Postgres database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "PGHOST_PRIVATE",
      "service": "Postgres",
      "description": "Private host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT_PRIVATE",
      "service": "Postgres",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PRIVATE_URL",
      "service": "Postgres",
      "description": "Private Database URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "PPDzCd"
      }
    },
    "cli": "railway deploy --template PPDzCd",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f9015eb0-c05b-449e-90fe-3dd45b7c813f",
            "serializedConfig": {
              "services": {
                "e8be0f7e-0f81-4f5b-920f-14880d632092": {
                  "icon": "https://raw.githubusercontent.com/formbricks/formbricks/21f393f402111a37bb2994ec139acaad65945110/apps/web/images/logo.svg",
                  "name": "Formbricks",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/auth/login"
                  },
                  "source": {
                    "image": "formbricks/formbricks:latest"
                  },
                  "variables": {
                    "MAIL_FROM": {
                      "isOptional": false,
                      "description": "Email from address",
                      "defaultValue": "${{SMTP_USER}}"
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP hostname",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port",
                      "defaultValue": ""
                    },
                    "SMTP_USER": {
                      "isOptional": true,
                      "description": "SMTP username, likely your email address",
                      "defaultValue": ""
                    },
                    "WEBAPP_URL": {
                      "isOptional": false,
                      "description": "Your public-facing URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "CRON_SECRET": {
                      "isOptional": false,
                      "description": "API Secret for running cron jobs",
                      "defaultValue": "{{CRON_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connects to Postgres over the private network",
                      "defaultValue": "${{Postgres.DATABASE_PRIVATE_URL}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Your public-facing URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password",
                      "defaultValue": ""
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "64 Character key for encryption",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "INVITE_DISABLED": {
                      "isOptional": false,
                      "description": "Set it to 1 to disable Invites",
                      "defaultValue": "0"
                    },
                    "NEXTAUTH_SECRET": {
                      "isOptional": false,
                      "description": "Automatically generated Next Auth secret",
                      "defaultValue": "{{NEXTAUTH_SECRET}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Allow read/write volume access",
                      "defaultValue": "0"
                    },
                    "SIGNUP_DISABLED": {
                      "isOptional": false,
                      "description": "Set it to 1 to disable Signups",
                      "defaultValue": "0"
                    },
                    "EMAIL_AUTH_DISABLED": {
                      "isOptional": false,
                      "description": "Set it to 1 to disable logging in with email",
                      "defaultValue": "0"
                    },
                    "NEXT_PUBLIC_WEBAPP_URL": {
                      "isOptional": false,
                      "description": "Your public-facing URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "COREPACK_INTEGRITY_KEYS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "PASSWORD_RESET_DISABLED": {
                      "isOptional": false,
                      "description": "Set to 0 to enable Password Reset",
                      "defaultValue": "1"
                    },
                    "PRISMA_GENERATE_DATAPROXY": {
                      "isOptional": false,
                      "description": "[Data proxy info](https://www.prisma.io/docs/data-platform/data-proxy/use-data-proxy)",
                      "defaultValue": "true"
                    },
                    "EMAIL_VERIFICATION_DISABLED": {
                      "isOptional": false,
                      "description": "Set to 0 to enable Email Verification for new signups",
                      "defaultValue": "1"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "600"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "Enables Formbricks to resolve private network domains",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "e8be0f7e-0f81-4f5b-920f-14880d632092": {
                      "mountPath": "/home/nextjs/apps/web/uploads/"
                    }
                  }
                },
                "ef1df52e-64f2-49af-b71b-f7ea7e185915": {
                  "icon": "https://devicons.railway.app/PostgreSQL?variant=light",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"unset PGPORT; docker-entrypoint.sh postgres --port=5432\""
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Public host",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Public port",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Public URL to connect to Postgres database",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "railway"
                    },
                    "PGHOST_PRIVATE": {
                      "isOptional": false,
                      "description": "Private host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT_PRIVATE": {
                      "isOptional": false,
                      "description": "Private port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private Database URL",
                      "defaultValue": "postgres://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{PGHOST_PRIVATE}}:${{PGPORT_PRIVATE}}/${{POSTGRES_DB}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "ef1df52e-64f2-49af-b71b-f7ea7e185915": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Formbricks",
      "method": "GET",
      "path": "/auth/login",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-18T04:14:48.008Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-17T00:21:19.338Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_34578748fdb4443b929d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,SUCCESS"
      }
    ]
  }
}
