{
  "manifest_version": "1.0.0",
  "template": {
    "id": "05444740-655a-487a-a556-661576d2c452",
    "slug": "multica",
    "name": "Multica",
    "description": "Platform for building and orchestrating AI agents.",
    "url": "https://railway.com/deploy/multica",
    "upstream": {
      "repo_url": "https://github.com/RockinPaul/multica_railway_template"
    }
  },
  "services": [
    {
      "name": "frontend",
      "source": {
        "repo": "https://github.com/RockinPaul/multica_railway_template"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "backend",
      "source": {
        "repo": "https://github.com/RockinPaul/multica_railway_template"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data/uploads",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "frontend",
      "description": "The port on which the Next.js server will listen (usually 3000).",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DOCS_URL",
      "service": "frontend",
      "description": "The URL where the application documentation is hosted (defaults to https://multica.ai).",
      "secret": false,
      "strategy": "default",
      "default": "https://multica.ai"
    },
    {
      "key": "HOSTNAME",
      "service": "frontend",
      "description": "The network interface the server binds to (set to 0.0.0.0 for Railway).",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "REMOTE_API_URL",
      "service": "frontend",
      "description": "The internal Railway URL used by the frontend to proxy requests to the backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "frontend",
      "description": "Path to the Dockerfile used to build the web service (usually Dockerfile.web).",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.web"
    },
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "The internal path within the volume where PostgreSQL data is stored.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "The name of the default database to create.",
      "secret": false,
      "strategy": "default",
      "default": "multica"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "The username for the primary database administrator.",
      "secret": false,
      "strategy": "default",
      "default": "multica"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "The password for the primary database administrator (generate a secret).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "backend",
      "description": "The port on which the Go backend API will listen (usually 8080).",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "APP_ENV",
      "service": "backend",
      "description": "The execution environment (set to production for Railway).",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "JWT_SECRET",
      "service": "backend",
      "description": "Secret key used to sign and verify authentication tokens (generate a secret).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ALLOW_SIGNUP",
      "service": "backend",
      "description": "Set to true to allow new users to register on this instance.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_URL",
      "service": "backend",
      "description": "The connection string for the PostgreSQL database (including credentials and domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_ORIGIN",
      "service": "backend",
      "description": "The public URL of your frontend service (used for CORS and auth redirects).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MULTICA_APP_URL",
      "service": "backend",
      "description": "The primary public URL used to access the Multica application.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOCAL_UPLOAD_DIR",
      "service": "backend",
      "description": "Path to the directory where uploaded assets and logs are stored.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data/uploads"
    },
    {
      "key": "ANALYTICS_DISABLED",
      "service": "backend",
      "description": "Set to true to opt-out of telemetry and usage tracking.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_MAX_CONNS",
      "service": "backend",
      "description": "The maximum number of simultaneous connections to the database.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "DATABASE_MIN_CONNS",
      "service": "backend",
      "description": "The minimum number of idle connections to keep open in the database pool.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "GOOGLE_REDIRECT_URI",
      "service": "backend",
      "description": "The OAuth2 callback URL for Google login (must match your Google Cloud Console).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "CORS_ALLOWED_ORIGINS",
      "service": "backend",
      "description": "Comma-separated list of origins allowed to make cross-site requests to the API.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOCAL_UPLOAD_BASE_URL",
      "service": "backend",
      "description": "The base public URL used to serve locally uploaded files (usually the backend domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REALTIME_METRICS_TOKEN",
      "service": "backend",
      "description": "Secret token required to access the internal real-time performance metrics endpoint (generate a secret).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "backend",
      "description": "Path to the Dockerfile used to build the backend service (usually Dockerfile).",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "MULTICA_DAEMON_SERVER_URL",
      "service": "backend",
      "description": "Server URL shown in the web app's multica setup self-host command, so the CLI daemon connects to the backend directly.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "multica"
      }
    },
    "cli": "railway deploy --template multica",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "05444740-655a-487a-a556-661576d2c452",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9b7188d5-80a3-4987-b9f1-75a334a5f16c": {
                  "icon": "https://raw.githubusercontent.com/multica-ai/multica/main/docs/assets/logo-dark.svg",
                  "name": "frontend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/multica_railway_template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port on which the Next.js server will listen (usually 3000).",
                      "defaultValue": "3000"
                    },
                    "DOCS_URL": {
                      "isOptional": false,
                      "description": "The URL where the application documentation is hosted (defaults to https://multica.ai).",
                      "defaultValue": "https://multica.ai"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "The network interface the server binds to (set to 0.0.0.0 for Railway).",
                      "defaultValue": "0.0.0.0"
                    },
                    "REMOTE_API_URL": {
                      "isOptional": false,
                      "description": "The internal Railway URL used by the frontend to proxy requests to the backend.",
                      "defaultValue": "http://${{backend.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "NEXT_PUBLIC_WS_URL": {
                      "isOptional": true,
                      "description": "Leave empty on Railway domains; the frontend proxies the realtime WebSocket to the backend itself. Set only when the browser should open its WebSocket to the backend host directly, e.g. wss://api.example.com/ws on custom subdomains, and then also set COOKIE_DOMAIN on backend.",
                      "defaultValue": ""
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the Dockerfile used to build the web service (usually Dockerfile.web).",
                      "defaultValue": "Dockerfile.web"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "b7a490d8-5dfa-4971-b3c9-1b3477794cce": {
                  "icon": "https://www.postgresql.org/media/img/about/press/elephant.png",
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "The internal path within the volume where PostgreSQL data is stored.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "The name of the default database to create.",
                      "defaultValue": "multica"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "The username for the primary database administrator.",
                      "defaultValue": "multica"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "The password for the primary database administrator (generate a secret).",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b7a490d8-5dfa-4971-b3c9-1b3477794cce": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f718736f-b418-42c2-adfc-710caba567c6": {
                  "icon": "https://raw.githubusercontent.com/multica-ai/multica/main/docs/assets/logo-dark.svg",
                  "name": "backend",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/multica_railway_template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "The port on which the Go backend API will listen (usually 8080).",
                      "defaultValue": "8080"
                    },
                    "APP_ENV": {
                      "isOptional": false,
                      "description": "The execution environment (set to production for Railway).",
                      "defaultValue": "production"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Secret key used to sign and verify authentication tokens (generate a secret).",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "ALLOW_SIGNUP": {
                      "isOptional": false,
                      "description": "Set to true to allow new users to register on this instance.",
                      "defaultValue": "true"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "The connection string for the PostgreSQL database (including credentials and domain).",
                      "defaultValue": "postgres://${{pgvector.POSTGRES_USER}}:${{pgvector.POSTGRES_PASSWORD}}@${{pgvector.RAILWAY_PRIVATE_DOMAIN}}:5432/${{pgvector.POSTGRES_DB}}?sslmode=disable"
                    },
                    "COOKIE_DOMAIN": {
                      "isOptional": true,
                      "description": "Leave empty on Railway domains. Set to the narrowest parent domain covering both custom domains, e.g. .example.com, when the browser reaches the backend host directly. Required together with NEXT_PUBLIC_WS_URL on frontend; never an IP address.",
                      "defaultValue": ""
                    },
                    "ALLOWED_EMAILS": {
                      "isOptional": true,
                      "description": "Comma-separated email addresses allowed to sign up. Leave empty to allow any address.",
                      "defaultValue": ""
                    },
                    "RESEND_API_KEY": {
                      "isOptional": true,
                      "description": "Resend API key for emailing login codes. Leave empty (not a space) to print codes to the backend log instead.",
                      "defaultValue": ""
                    },
                    "FRONTEND_ORIGIN": {
                      "isOptional": false,
                      "description": "The public URL of your frontend service (used for CORS and auth redirects).",
                      "defaultValue": "https://${{frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MULTICA_APP_URL": {
                      "isOptional": false,
                      "description": "The primary public URL used to access the Multica application.",
                      "defaultValue": "https://${{frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GOOGLE_CLIENT_ID": {
                      "isOptional": true,
                      "description": "Google OAuth client ID for social login. Leave empty to hide Google login.",
                      "defaultValue": ""
                    },
                    "LOCAL_UPLOAD_DIR": {
                      "isOptional": false,
                      "description": "Path to the directory where uploaded assets and logs are stored.",
                      "defaultValue": "/app/data/uploads"
                    },
                    "RESEND_FROM_EMAIL": {
                      "isOptional": true,
                      "description": "Verified sender address for Resend. Leave empty when RESEND_API_KEY is empty.",
                      "defaultValue": ""
                    },
                    "ANALYTICS_DISABLED": {
                      "isOptional": false,
                      "description": "Set to true to opt-out of telemetry and usage tracking.",
                      "defaultValue": "true"
                    },
                    "DATABASE_MAX_CONNS": {
                      "isOptional": false,
                      "description": "The maximum number of simultaneous connections to the database.",
                      "defaultValue": "10"
                    },
                    "DATABASE_MIN_CONNS": {
                      "isOptional": false,
                      "description": "The minimum number of idle connections to keep open in the database pool.",
                      "defaultValue": "2"
                    },
                    "GOOGLE_REDIRECT_URI": {
                      "isOptional": false,
                      "description": "The OAuth2 callback URL for Google login (must match your Google Cloud Console).",
                      "defaultValue": "https://${{frontend.RAILWAY_PUBLIC_DOMAIN}}/auth/callback"
                    },
                    "CORS_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Comma-separated list of origins allowed to make cross-site requests to the API.",
                      "defaultValue": "https://${{frontend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GOOGLE_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "Google OAuth client secret for social login. Leave empty when GOOGLE_CLIENT_ID is empty.",
                      "defaultValue": ""
                    },
                    "ALLOWED_EMAIL_DOMAINS": {
                      "isOptional": true,
                      "description": "Comma-separated email domains, e.g. company.com, allowed to sign up. Leave empty to allow any domain.",
                      "defaultValue": ""
                    },
                    "LOCAL_UPLOAD_BASE_URL": {
                      "isOptional": false,
                      "description": "The base public URL used to serve locally uploaded files (usually the backend domain).",
                      "defaultValue": "https://${{backend.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REALTIME_METRICS_TOKEN": {
                      "isOptional": false,
                      "description": "Secret token required to access the internal real-time performance metrics endpoint (generate a secret).",
                      "defaultValue": "{{REALTIME_METRICS_TOKEN}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Path to the Dockerfile used to build the backend service (usually Dockerfile).",
                      "defaultValue": "Dockerfile"
                    },
                    "MULTICA_DAEMON_SERVER_URL": {
                      "isOptional": false,
                      "description": "Server URL shown in the web app's multica setup self-host command, so the CLI daemon connects to the backend directly.",
                      "defaultValue": "https://${{backend.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f718736f-b418-42c2-adfc-710caba567c6": {
                      "mountPath": "/app/data/uploads"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "frontend",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T13:25:59.165Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_606e549faa3d4456ac5a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 99,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "backend"
  }
}
