{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fe434cea-1490-4e11-88e9-3bfa34a18e55",
    "slug": "langflow-4",
    "name": "Langflow",
    "description": "Langflow AI agent builder with login, Postgres and pinned version",
    "url": "https://railway.com/deploy/langflow-4",
    "upstream": {
      "image": "langflowai/langflow:1.13.1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "langflow",
      "source": {
        "image": "langflowai/langflow:1.13.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private host name (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Same as POSTGRES_USER",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Same as POSTGRES_DB",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Same as POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity of the generated SSL certificate, in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Postgres password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds to let Postgres shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "langflow",
      "description": "Port Langflow listens on",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "langflow",
      "description": "Turn off Langflow's usage telemetry",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_HOST",
      "service": "langflow",
      "description": "Listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "LANGFLOW_PORT",
      "service": "langflow",
      "description": "Same as PORT",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "langflow",
      "description": "Run as root so Langflow can write to the Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "LANGFLOW_WORKERS",
      "service": "langflow",
      "description": "Worker processes. More handle more parallel runs but use more memory",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "LANGFLOW_LOG_LEVEL",
      "service": "langflow",
      "description": "Log level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "langflow",
      "description": "Admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "langflow",
      "description": "Require a login. true would let anyone with the URL in as admin",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "langflow",
      "description": "Uploaded files, cache and logs, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "LANGFLOW_SECRET_KEY",
      "service": "langflow",
      "description": "Signs logins and encrypts stored API keys (generated). Never change after first deploy, or saved keys can't be decrypted",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "langflow",
      "description": "Postgres over the private network (auto-configured)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_ACCESS_SECURE",
      "service": "langflow",
      "description": "Send login cookies only over HTTPS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_ENABLE_SIGNUP",
      "service": "langflow",
      "description": "Public sign-up. Off: the admin adds users through the API (see the README)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_REFRESH_SECURE",
      "service": "langflow",
      "description": "Send login cookies only over HTTPS",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_NEW_USER_IS_ACTIVE",
      "service": "langflow",
      "description": "New accounts stay inactive until the admin activates them",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "langflow",
      "description": "Admin password (generated). Read it here after deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY",
      "service": "langflow",
      "description": "Only admins can create or edit custom components, which run Python on the server. Set to false to let every user write them",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langflow-4"
      }
    },
    "cli": "railway deploy --template langflow-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fe434cea-1490-4e11-88e9-3bfa34a18e55",
            "serializedConfig": {
              "services": {
                "8bb9f7d7-b2b7-41d6-b2d3-ce45b501db2f": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Data directory on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "description": "Private host name (auto-configured)",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "description": "Same as POSTGRES_USER",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "description": "Same as POSTGRES_DB",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "description": "Same as POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "description": "Private connection URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "description": "Database user",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "description": "Validity of the generated SSL certificate, in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Postgres password (generated)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds to let Postgres shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "f4e58dc1-7e9c-473c-a3f5-3e6b703d0a68": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "9b88de1e-f6b9-4825-9fac-8350fe9e0f0e": {
                  "icon": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/langflow.svg",
                  "name": "langflow",
                  "deploy": {
                    "healthcheckPath": "/health_check",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langflowai/langflow:1.13.1"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Port Langflow listens on",
                      "defaultValue": "7860"
                    },
                    "DO_NOT_TRACK": {
                      "description": "Turn off Langflow's usage telemetry",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_HOST": {
                      "description": "Listen on all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "LANGFLOW_PORT": {
                      "description": "Same as PORT",
                      "defaultValue": "${{PORT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Langflow can write to the Railway volume",
                      "defaultValue": "0"
                    },
                    "LANGFLOW_WORKERS": {
                      "description": "Worker processes. More handle more parallel runs but use more memory",
                      "defaultValue": "1"
                    },
                    "LANGFUSE_BASE_URL": {
                      "isOptional": true,
                      "description": "Optional. Langfuse URL for tracing every flow run, for example our Langfuse v4 template or https://cloud.langfuse.com",
                      "defaultValue": ""
                    },
                    "LANGFLOW_LOG_LEVEL": {
                      "description": "Log level",
                      "defaultValue": "info"
                    },
                    "LANGFLOW_SUPERUSER": {
                      "description": "Admin username",
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "description": "Require a login. true would let anyone with the URL in as admin",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "description": "Uploaded files, cache and logs, on the volume",
                      "defaultValue": "/app/langflow"
                    },
                    "LANGFLOW_SECRET_KEY": {
                      "description": "Signs logins and encrypts stored API keys (generated). Never change after first deploy, or saved keys can't be decrypted",
                      "defaultValue": "{{LANGFLOW_SECRET_KEY}}"
                    },
                    "LANGFUSE_PUBLIC_KEY": {
                      "isOptional": true,
                      "description": "Optional. Langfuse project public key",
                      "defaultValue": ""
                    },
                    "LANGFUSE_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Optional. Langfuse project secret key",
                      "defaultValue": ""
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "description": "Postgres over the private network (auto-configured)",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LANGFLOW_ACCESS_SECURE": {
                      "description": "Send login cookies only over HTTPS",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_ENABLE_SIGNUP": {
                      "description": "Public sign-up. Off: the admin adds users through the API (see the README)",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_REFRESH_SECURE": {
                      "description": "Send login cookies only over HTTPS",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_NEW_USER_IS_ACTIVE": {
                      "description": "New accounts stay inactive until the admin activates them",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "description": "Admin password (generated). Read it here after deploy",
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    },
                    "LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY": {
                      "description": "Only admins can create or edit custom components, which run Python on the server. Set to false to let every user write them",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "17345be1-772c-4fc3-bd25-f8f182f5c7c7": {
                      "mountPath": "/app/langflow"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "langflow",
      "method": "GET",
      "path": "/health_check",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-04T22:15:11.317Z",
  "generator_version": "0.1.0"
}
