{
  "manifest_version": "1.0.0",
  "template": {
    "id": "837ad7d8-e8bb-4468-8aed-a532ec1f58dc",
    "slug": "opnform",
    "name": "OpnForm",
    "description": "Open-source form builder (Typeform alternative) with PostgreSQL",
    "url": "https://railway.com/deploy/opnform",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/opnform-railway:1.0.0@sha256:549cd20a56c8f0f65b137d6363eac37081b0e4fbab6c2aa34af9632c0f035992"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "client",
      "source": {
        "image": "jhumanj/opnform-client:2.5.0@sha256:8862ee89453fdf10ec1c652b94a2dfb28abd16fe0af1d67e982bcc780dcca68e"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "opnform",
      "source": {
        "image": "ghcr.io/youssefsiam38/opnform-railway:1.0.0@sha256:549cd20a56c8f0f65b137d6363eac37081b0e4fbab6c2aa34af9632c0f035992"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/nginx/html/storage",
      "http": true
    },
    {
      "name": "redis",
      "source": {
        "image": "valkey/valkey:8.1.10-alpine@sha256:081c2f5cb575efc901aa80ff9cdbd1ec6a301682fd35e1ebb4b0990a4a4a8507"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "db",
      "source": {
        "image": "postgres:16.15@sha256:65b16a8b326e0cfbdf33fa7e783f2a0cb352a61448616ccccfd616ef42aa0f65"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "client",
      "description": "Port the Nuxt client listens on (private).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NUXT_API_SECRET",
      "service": "client",
      "description": "Must equal FRONT_API_SECRET on opnform.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NUXT_PUBLIC_ENV",
      "service": "client",
      "description": "Client environment.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "NUXT_PUBLIC_APP_URL",
      "service": "client",
      "description": "Public URL of OpnForm (the opnform service's domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NUXT_PUBLIC_API_BASE",
      "service": "client",
      "description": "Public API URL used by browsers (/api on the opnform domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NUXT_PRIVATE_API_BASE",
      "service": "client",
      "description": "API URL for server-side rendering, over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "opnform",
      "description": "Port nginx listens on (dual-stack); the public domain targets it. Keep 8080.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_KEY",
      "service": "opnform",
      "description": "Laravel encryption key, generated (32 characters). Do not change after first start.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_URL",
      "service": "opnform",
      "description": "Public URL of OpnForm. Change it (and FRONT_URL, and the client's NUXT_PUBLIC_*) for a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_HOST",
      "service": "opnform",
      "description": "The bundled PostgreSQL on Railway's private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_PORT",
      "service": "opnform",
      "description": "PostgreSQL port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "FRONT_URL",
      "service": "opnform",
      "description": "Public URL of the web app (same origin as APP_URL).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_NAME",
      "service": "opnform",
      "description": "Display name of the first user.",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "JWT_SECRET",
      "service": "opnform",
      "description": "Signs login tokens, generated (at least 32 characters).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_HOST",
      "service": "opnform",
      "description": "The bundled Valkey (Redis-compatible) on Railway's private network: cache, queue, sessions.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "opnform",
      "description": "Valkey port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "opnform",
      "description": "Your email. The first OpnForm user (workspace and instance admin) is created with it on the first start.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "DB_DATABASE",
      "service": "opnform",
      "description": "Database name, from the db service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_PASSWORD",
      "service": "opnform",
      "description": "Database password, from the db service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_USERNAME",
      "service": "opnform",
      "description": "Database user, from the db service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MAIL_MAILER",
      "service": "opnform",
      "description": "log writes emails to the logs. Set smtp plus MAIL_* to send real email.",
      "secret": false,
      "strategy": "default",
      "default": "log"
    },
    {
      "key": "ADMIN_EMAILS",
      "service": "opnform",
      "description": "Comma-separated instance admins (moderation/admin panel). Defaults to ADMIN_EMAIL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "opnform",
      "description": "The admin's initial password, generated. Copy it to sign in; change it in OpnForm later.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CLIENT_UPSTREAM",
      "service": "opnform",
      "description": "host:port of the private Nuxt client that nginx proxies non-API pages to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONT_API_SECRET",
      "service": "opnform",
      "description": "Shared secret for the client's server-side API calls, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "JWT_SKIP_IP_UA_VALIDATION",
      "service": "opnform",
      "description": "false keeps login tokens bound to the browser's User-Agent (upstream default).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "opnform",
      "description": "The first start runs migrations and creates the first user.",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PGDATA",
      "service": "db",
      "description": "Data directory inside the volume (the volume root holds lost+found).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "db",
      "description": "PostgreSQL database.",
      "secret": false,
      "strategy": "default",
      "default": "opnform"
    },
    {
      "key": "POSTGRES_USER",
      "service": "db",
      "description": "PostgreSQL user.",
      "secret": false,
      "strategy": "default",
      "default": "opnform"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "db",
      "description": "PostgreSQL password, generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "opnform"
      }
    },
    "cli": "railway deploy --template opnform",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "837ad7d8-e8bb-4468-8aed-a532ec1f58dc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0fadd1cf-c237-4333-b798-1ab265387f65": {
                  "icon": null,
                  "name": "client",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "jhumanj/opnform-client:2.5.0@sha256:8862ee89453fdf10ec1c652b94a2dfb28abd16fe0af1d67e982bcc780dcca68e"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the Nuxt client listens on (private).",
                      "defaultValue": "3000"
                    },
                    "NUXT_API_SECRET": {
                      "isOptional": false,
                      "description": "Must equal FRONT_API_SECRET on opnform.",
                      "defaultValue": "${{opnform.FRONT_API_SECRET}}"
                    },
                    "NUXT_PUBLIC_ENV": {
                      "isOptional": false,
                      "description": "Client environment.",
                      "defaultValue": "production"
                    },
                    "NUXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "description": "Public URL of OpnForm (the opnform service's domain).",
                      "defaultValue": "https://${{opnform.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NUXT_PUBLIC_API_BASE": {
                      "isOptional": false,
                      "description": "Public API URL used by browsers (/api on the opnform domain).",
                      "defaultValue": "https://${{opnform.RAILWAY_PUBLIC_DOMAIN}}/api"
                    },
                    "NUXT_PRIVATE_API_BASE": {
                      "isOptional": false,
                      "description": "API URL for server-side rendering, over the private network.",
                      "defaultValue": "http://${{opnform.RAILWAY_PRIVATE_DOMAIN}}:8080/api"
                    },
                    "NUXT_PUBLIC_H_CAPTCHA_SITE_KEY": {
                      "isOptional": true,
                      "description": "Optional. hCaptcha site key for forms with captcha."
                    }
                  }
                },
                "28902933-69e6-4666-9c7e-129f51a5f92c": {
                  "icon": null,
                  "name": "opnform",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/opnform-railway:1.0.0@sha256:549cd20a56c8f0f65b137d6363eac37081b0e4fbab6c2aa34af9632c0f035992"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on (dual-stack); the public domain targets it. Keep 8080.",
                      "defaultValue": "8080"
                    },
                    "APP_KEY": {
                      "isOptional": false,
                      "description": "Laravel encryption key, generated (32 characters). Do not change after first start.",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_URL": {
                      "isOptional": false,
                      "description": "Public URL of OpnForm. Change it (and FRONT_URL, and the client's NUXT_PUBLIC_*) for a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_HOST": {
                      "isOptional": false,
                      "description": "The bundled PostgreSQL on Railway's private network.",
                      "defaultValue": "${{db.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "PostgreSQL port.",
                      "defaultValue": "5432"
                    },
                    "FRONT_URL": {
                      "isOptional": false,
                      "description": "Public URL of the web app (same origin as APP_URL).",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MAIL_HOST": {
                      "isOptional": true,
                      "description": "Optional. SMTP host (with MAIL_MAILER=smtp)."
                    },
                    "MAIL_PORT": {
                      "isOptional": true,
                      "description": "Optional. SMTP port."
                    },
                    "ADMIN_NAME": {
                      "isOptional": false,
                      "description": "Display name of the first user.",
                      "defaultValue": "Admin"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs login tokens, generated (at least 32 characters).",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "description": "The bundled Valkey (Redis-compatible) on Railway's private network: cache, queue, sessions.",
                      "defaultValue": "${{redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "Valkey port.",
                      "defaultValue": "6379"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your email. The first OpnForm user (workspace and instance admin) is created with it on the first start.",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "DB_DATABASE": {
                      "isOptional": false,
                      "description": "Database name, from the db service.",
                      "defaultValue": "${{db.POSTGRES_DB}}"
                    },
                    "DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password, from the db service.",
                      "defaultValue": "${{db.POSTGRES_PASSWORD}}"
                    },
                    "DB_USERNAME": {
                      "isOptional": false,
                      "description": "Database user, from the db service.",
                      "defaultValue": "${{db.POSTGRES_USER}}"
                    },
                    "MAIL_MAILER": {
                      "isOptional": false,
                      "description": "log writes emails to the logs. Set smtp plus MAIL_* to send real email.",
                      "defaultValue": "log"
                    },
                    "ADMIN_EMAILS": {
                      "isOptional": false,
                      "description": "Comma-separated instance admins (moderation/admin panel). Defaults to ADMIN_EMAIL.",
                      "defaultValue": "${{ADMIN_EMAIL}}"
                    },
                    "MAIL_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional. SMTP password."
                    },
                    "MAIL_USERNAME": {
                      "isOptional": true,
                      "description": "Optional. SMTP user name."
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "The admin's initial password, generated. Copy it to sign in; change it in OpnForm later.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "MAIL_FROM_NAME": {
                      "isOptional": true,
                      "description": "Optional. From name for emails."
                    },
                    "CLIENT_UPSTREAM": {
                      "isOptional": false,
                      "description": "host:port of the private Nuxt client that nginx proxies non-API pages to.",
                      "defaultValue": "${{client.RAILWAY_PRIVATE_DOMAIN}}:3000"
                    },
                    "MAIL_ENCRYPTION": {
                      "isOptional": true,
                      "description": "Optional. tls or ssl."
                    },
                    "OPEN_AI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Enables AI form generation."
                    },
                    "FRONT_API_SECRET": {
                      "isOptional": false,
                      "description": "Shared secret for the client's server-side API calls, generated.",
                      "defaultValue": "{{FRONT_API_SECRET}}"
                    },
                    "MAIL_FROM_ADDRESS": {
                      "isOptional": true,
                      "description": "Optional. From address for emails."
                    },
                    "H_CAPTCHA_SITE_KEY": {
                      "isOptional": true,
                      "description": "Optional. hCaptcha site key (also set NUXT_PUBLIC_H_CAPTCHA_SITE_KEY on client)."
                    },
                    "H_CAPTCHA_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Optional. hCaptcha secret key."
                    },
                    "JWT_SKIP_IP_UA_VALIDATION": {
                      "isOptional": false,
                      "description": "false keeps login tokens bound to the browser's User-Agent (upstream default).",
                      "defaultValue": "false"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "The first start runs migrations and creates the first user.",
                      "defaultValue": "300"
                    },
                    "OPNFORM_ANONYMOUS_TELEMETRY_DISABLED": {
                      "isOptional": true,
                      "description": "Optional. true opts out of upstream's anonymous usage statistics."
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "28902933-69e6-4666-9c7e-129f51a5f92c": {
                      "mountPath": "/usr/share/nginx/html/storage"
                    }
                  }
                },
                "3e4dc848-9948-49df-af69-d340c4c7e691": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "valkey-server --appendonly yes --protected-mode no",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:8.1.10-alpine@sha256:081c2f5cb575efc901aa80ff9cdbd1ec6a301682fd35e1ebb4b0990a4a4a8507"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "3e4dc848-9948-49df-af69-d340c4c7e691": {
                      "mountPath": "/data"
                    }
                  }
                },
                "f6a493e4-71b5-4fd3-b9b8-2c94e9b656d4": {
                  "icon": null,
                  "name": "db",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:16.15@sha256:65b16a8b326e0cfbdf33fa7e783f2a0cb352a61448616ccccfd616ef42aa0f65"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume (the volume root holds lost+found).",
                      "defaultValue": "/var/lib/postgresql/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "PostgreSQL database.",
                      "defaultValue": "opnform"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL user.",
                      "defaultValue": "opnform"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password, generated.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "f6a493e4-71b5-4fd3-b9b8-2c94e9b656d4": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "opnform",
      "method": "GET",
      "path": "/api/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-07T10:14:36.716Z",
  "generator_version": "0.1.0"
}
