{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e11ff3f0-7fb8-4162-a4a2-449069bbae50",
    "slug": "heyform",
    "name": "HeyForm",
    "description": "Form builder for surveys, quizzes and polls, one question at a time",
    "url": "https://railway.com/deploy/heyform",
    "upstream": {
      "image": "axllent/mailpit:latest"
    }
  },
  "services": [
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "heyform",
      "source": {
        "image": "heyform/community-edition:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/packages/server/static/upload",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Root user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port Railway probes",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Web inbox username and password",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Dual-stack SMTP bind for private peers",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "heyform",
      "description": "Port Railway probes and routes to",
      "secret": false,
      "strategy": "default",
      "default": "9157"
    },
    {
      "key": "REDIS_DB",
      "service": "heyform",
      "description": "Cache database; queues use this plus one",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "MONGO_URI",
      "service": "heyform",
      "description": "Application database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_FROM",
      "service": "heyform",
      "description": "From address on all mail",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SMTP_HOST",
      "service": "heyform",
      "description": "Outgoing mail host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "heyform",
      "description": "Outgoing mail port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "REDIS_HOST",
      "service": "heyform",
      "description": "Queue and cache host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PORT",
      "service": "heyform",
      "description": "Queue and cache port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SESSION_KEY",
      "service": "heyform",
      "description": "Session cookie encryption key, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SMTP_SECURE",
      "service": "heyform",
      "description": "No implicit TLS on the capture inbox",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TRUST_PROXY",
      "service": "heyform",
      "description": "Trust Railway's edge for client IP and scheme",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "heyform",
      "description": "Cap the Node heap to the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=2048"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "heyform",
      "description": "Queue and cache password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "APP_LISTEN_PORT",
      "service": "heyform",
      "description": "Port the Node server binds",
      "secret": false,
      "strategy": "default",
      "default": "9157"
    },
    {
      "key": "APP_HOMEPAGE_URL",
      "service": "heyform",
      "description": "Public base URL and cookie domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "APP_LISTEN_HOSTNAME",
      "service": "heyform",
      "description": "Listen address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "FORM_ENCRYPTION_KEY",
      "service": "heyform",
      "description": "Form token encryption key, keep stable",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_DISABLE_REGISTRATION",
      "service": "heyform",
      "description": "Set true to close public sign-up",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "heyform",
      "description": "Health check window on first boot",
      "secret": false,
      "strategy": "default",
      "default": "300"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "heyform"
      }
    },
    "cli": "railway deploy --template heyform",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e11ff3f0-7fb8-4162-a4a2-449069bbae50",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4065e5c3-4a98-43ca-9d9f-68c9375948bc": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the server",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Root user created on first boot",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "4065e5c3-4a98-43ca-9d9f-68c9375948bc": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "570eaa69-830b-4d03-a4e8-59f6bac2d5ed": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port Railway probes",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Web inbox username and password",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Dual-stack SMTP bind for private peers",
                      "defaultValue": "[::]:1025"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "570eaa69-830b-4d03-a4e8-59f6bac2d5ed": {
                      "mountPath": "/data"
                    }
                  }
                },
                "92343452-dcae-4527-91d8-a9e4b2a06241": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "92343452-dcae-4527-91d8-a9e4b2a06241": {
                      "mountPath": "/data"
                    }
                  }
                },
                "bdfd16ff-50a4-4eee-805c-30d7373a0c38": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/heyform.svg",
                  "name": "heyform",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health/ready",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "heyform/community-edition:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway probes and routes to",
                      "defaultValue": "9157"
                    },
                    "REDIS_DB": {
                      "isOptional": false,
                      "description": "Cache database; queues use this plus one",
                      "defaultValue": "0"
                    },
                    "MONGO_URI": {
                      "isOptional": false,
                      "description": "Application database",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/heyform?authSource=admin"
                    },
                    "SMTP_FROM": {
                      "isOptional": false,
                      "description": "From address on all mail",
                      "defaultValue": "HeyForm <noreply@${{RAILWAY_PUBLIC_DOMAIN}}>"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Outgoing mail host",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Outgoing mail port",
                      "defaultValue": "1025"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "Queue and cache host",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Queue and cache port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "SESSION_KEY": {
                      "isOptional": false,
                      "description": "Session cookie encryption key, keep stable",
                      "defaultValue": "{{SESSION_KEY}}"
                    },
                    "SMTP_SECURE": {
                      "isOptional": false,
                      "description": "No implicit TLS on the capture inbox",
                      "defaultValue": "false"
                    },
                    "TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Trust Railway's edge for client IP and scheme",
                      "defaultValue": "true"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Cap the Node heap to the container",
                      "defaultValue": "--max-old-space-size=2048"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Queue and cache password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "APP_LISTEN_PORT": {
                      "isOptional": false,
                      "description": "Port the Node server binds",
                      "defaultValue": "9157"
                    },
                    "APP_HOMEPAGE_URL": {
                      "isOptional": false,
                      "description": "Public base URL and cookie domain",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "APP_LISTEN_HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "FORM_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Form token encryption key, keep stable",
                      "defaultValue": "{{FORM_ENCRYPTION_KEY}}"
                    },
                    "APP_DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "Set true to close public sign-up",
                      "defaultValue": "false"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Health check window on first boot",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9157": {
                        "port": 9157
                      }
                    }
                  },
                  "volumeMounts": {
                    "bdfd16ff-50a4-4eee-805c-30d7373a0c38": {
                      "mountPath": "/app/packages/server/static/upload"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mailpit",
      "method": "GET",
      "path": "/livez",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T22:14:37.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T20:01:33.795Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_08a6ff5aa7524a52bcdf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 120,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "heyform"
  }
}
