{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4c30f5d1-e3c7-4518-bc48-3aa4137c240c",
    "slug": "qmXJnq",
    "name": "HeyForm | Open Source Typeform Alternative for Forms and Surveys",
    "description": "Self-hosted conversational form builder with logic and analytics",
    "url": "https://railway.com/deploy/qmXJnq",
    "upstream": {
      "image": "heyform/community-edition:v3.0.2"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.1-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "HeyForm",
      "source": {
        "image": "heyform/community-edition:v3.0.2"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:7.0.40"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "tcp_ports": [
        27017
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "HeyForm",
      "description": "Just exists",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "MONGO_URI",
      "service": "HeyForm",
      "description": "Mongo URI",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_HOST",
      "service": "HeyForm",
      "description": "Redis host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "HeyForm",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SESSION_KEY",
      "service": "HeyForm",
      "description": "Session encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TRUST_PROXY",
      "service": "HeyForm",
      "description": "Express trust-proxy hops. v3.0.2 stopped trusting proxies by default, which on Railway records every visitor as the edge address and collapses the per-IP submission limit and the login throttle into one global bucket. Two hops resolve to the real visitor; a forged X-Forwarded-For is ignored, because the edge rewrites it.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "HeyForm",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_HOMEPAGE_URL",
      "service": "HeyForm",
      "description": "Website homepage URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "FORM_ENCRYPTION_KEY",
      "service": "HeyForm",
      "description": "Form encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "MongoDB Port.",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Mongodb user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private URL to connect to MongoDB.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Root password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_PUBLIC_URL",
      "service": "MongoDB",
      "description": "Public URL to connect to MongoDB, used for Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root user password, set during initialization.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "User created during initialization, given the root role.",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "qmXJnq"
      }
    },
    "cli": "railway deploy --template qmXJnq",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4c30f5d1-e3c7-4518-bc48-3aa4137c240c",
            "serializedConfig": {
              "services": {
                "2a3f8d9a-bf5a-417e-b04c-c1c6d432054e": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --dir /data --bind 0.0.0.0 ::'"
                  },
                  "source": {
                    "image": "redis:8.10.1-alpine"
                  },
                  "variables": {
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "2a3f8d9a-bf5a-417e-b04c-c1c6d432054e": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "61b502a6-099c-47dc-b234-16f3248f8988": {
                  "icon": "https://docs.heyform.net/logo-dark.svg",
                  "name": "HeyForm",
                  "deploy": {
                    "startCommand": "sh -c \"if [ -f ./dist/main.js ]; then node --enable-source-maps ./dist/main.js; elif [ -f ./dist/src/main.js ]; then node --enable-source-maps ./dist/src/main.js; else node --enable-source-maps ./dist/packages/server/main.js; fi\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "heyform/community-edition:v3.0.2"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Just exists",
                      "defaultValue": "8000"
                    },
                    "MONGO_URI": {
                      "description": "Mongo URI",
                      "defaultValue": "${{MongoDB.MONGO_URL}}"
                    },
                    "REDIS_HOST": {
                      "description": "Redis host",
                      "defaultValue": "${{Redis.RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "description": "Redis port",
                      "defaultValue": "${{Redis.RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "SESSION_KEY": {
                      "isOptional": false,
                      "description": "Session encryption key",
                      "defaultValue": "{{SESSION_KEY}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Express trust-proxy hops. v3.0.2 stopped trusting proxies by default, which on Railway records every visitor as the edge address and collapses the per-IP submission limit and the login throttle into one global bucket. Two hops resolve to the real visitor; a forged X-Forwarded-For is ignored, because the edge rewrites it.",
                      "defaultValue": "2"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "APP_HOMEPAGE_URL": {
                      "isOptional": false,
                      "description": "Website homepage URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "FORM_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Form encryption key",
                      "defaultValue": "{{FORM_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9157": {
                        "port": 9157
                      }
                    }
                  }
                },
                "a4ac8334-99fb-4b78-b554-3ab6f3f2463d": {
                  "icon": "https://devicons.railway.app/i/mongodb.svg",
                  "name": "MongoDB",
                  "build": {},
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0"
                  },
                  "source": {
                    "image": "mongo:7.0.40"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "MongoDB Port.",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Mongodb user.",
                      "defaultValue": "${{ MONGO_INITDB_ROOT_USERNAME }}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private URL to connect to MongoDB.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Root password.",
                      "defaultValue": "${{ MONGO_INITDB_ROOT_PASSWORD }}"
                    },
                    "MONGO_PUBLIC_URL": {
                      "description": "Public URL to connect to MongoDB, used for Data panel.",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root user password, set during initialization.",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "User created during initialization, given the root role.",
                      "defaultValue": "mongo"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "27017": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "a4ac8334-99fb-4b78-b554-3ab6f3f2463d": {
                      "mountPath": "/data/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T03:12:40.289Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_41b7be4e5f764691b686",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 91,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "HeyForm"
  }
}
