{
  "manifest_version": "1.0.0",
  "template": {
    "id": "21d37c3f-e6ef-47a3-abc7-df65e44ce167",
    "slug": "langflow-agent-builder",
    "name": "Langflow",
    "description": "Visual canvas for building AI agents and LLM workflows",
    "url": "https://railway.com/deploy/langflow-agent-builder",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/langflow-railway"
    }
  },
  "services": [
    {
      "name": "Langflow",
      "source": {
        "repo": "https://github.com/gridalpha/langflow-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Langflow",
      "description": "Port Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "LANGFLOW_HOST",
      "service": "Langflow",
      "description": "Bind address inside the container",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "LANGFLOW_PORT",
      "service": "Langflow",
      "description": "HTTP listener port",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "LANGFLOW_WORKERS",
      "service": "Langflow",
      "description": "Gunicorn worker processes",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "LANGFLOW_LOG_LEVEL",
      "service": "Langflow",
      "description": "Application log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LANGFLOW_POOL_SIZE",
      "service": "Langflow",
      "description": "SQLAlchemy pool size per worker",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "LANGFLOW_REDIS_URL",
      "service": "Langflow",
      "description": "Cache connection, database 0",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "Langflow",
      "description": "First admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "Langflow",
      "description": "Require a login",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CACHE_TYPE",
      "service": "Langflow",
      "description": "Share the cache across workers",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "Langflow",
      "description": "Volume path for files and keys",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "LANGFLOW_SECRET_KEY",
      "service": "Langflow",
      "description": "Session and credential encryption key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFLOW_CORS_ORIGINS",
      "service": "Langflow",
      "description": "Allowed browser origins",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "Langflow",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_MAX_OVERFLOW",
      "service": "Langflow",
      "description": "Extra connections per worker",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "LANGFLOW_ACCESS_SECURE",
      "service": "Langflow",
      "description": "Secure flag on the access cookie",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_ENABLE_SIGNUP",
      "service": "Langflow",
      "description": "Disable public registration",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_JOB_QUEUE_TYPE",
      "service": "Langflow",
      "description": "Required for multiple workers",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "LANGFLOW_REFRESH_SECURE",
      "service": "Langflow",
      "description": "Secure flag on the refresh cookie",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "Langflow",
      "description": "Dockerfile used to build the service",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "LANGFLOW_REDIS_QUEUE_URL",
      "service": "Langflow",
      "description": "Build-event queue, database 1",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_FS_TOOL_BASE_DIR",
      "service": "Langflow",
      "description": "File component sandbox on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow/fs_tool/fs_sandbox"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "Langflow",
      "description": "First admin password, created once",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFLOW_KNOWLEDGE_BASES_DIR",
      "service": "Langflow",
      "description": "Knowledge base storage on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow/knowledge_bases"
    },
    {
      "key": "LANGFLOW_ALEMBIC_LOG_TO_STDOUT",
      "service": "Langflow",
      "description": "Send migration output to the logs",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Langflow",
      "description": "Graceful shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "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": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Redis",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langflow-agent-builder"
      }
    },
    "cli": "railway deploy --template langflow-agent-builder",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "21d37c3f-e6ef-47a3-abc7-df65e44ce167",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "19fe3694-6ed9-4c7b-ad41-e24b916ca41d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/langflow-light.png",
                  "name": "Langflow",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/langflow-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health-checks",
                      "defaultValue": "7860"
                    },
                    "LANGFLOW_HOST": {
                      "isOptional": false,
                      "description": "Bind address inside the container",
                      "defaultValue": "0.0.0.0"
                    },
                    "LANGFLOW_PORT": {
                      "isOptional": false,
                      "description": "HTTP listener port",
                      "defaultValue": "7860"
                    },
                    "LANGFLOW_WORKERS": {
                      "isOptional": false,
                      "description": "Gunicorn worker processes",
                      "defaultValue": "2"
                    },
                    "LANGFLOW_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Application log verbosity",
                      "defaultValue": "info"
                    },
                    "LANGFLOW_POOL_SIZE": {
                      "isOptional": false,
                      "description": "SQLAlchemy pool size per worker",
                      "defaultValue": "10"
                    },
                    "LANGFLOW_REDIS_URL": {
                      "isOptional": false,
                      "description": "Cache connection, database 0",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "LANGFLOW_SUPERUSER": {
                      "isOptional": false,
                      "description": "First admin username",
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "isOptional": false,
                      "description": "Require a login",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CACHE_TYPE": {
                      "isOptional": false,
                      "description": "Share the cache across workers",
                      "defaultValue": "redis"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Volume path for files and keys",
                      "defaultValue": "/app/langflow"
                    },
                    "LANGFLOW_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Session and credential encryption key",
                      "defaultValue": "{{LANGFLOW_SECRET_KEY}}"
                    },
                    "LANGFLOW_CORS_ORIGINS": {
                      "isOptional": false,
                      "description": "Allowed browser origins",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LANGFLOW_MAX_OVERFLOW": {
                      "isOptional": false,
                      "description": "Extra connections per worker",
                      "defaultValue": "10"
                    },
                    "LANGFLOW_ACCESS_SECURE": {
                      "isOptional": false,
                      "description": "Secure flag on the access cookie",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_ENABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Disable public registration",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_JOB_QUEUE_TYPE": {
                      "isOptional": false,
                      "description": "Required for multiple workers",
                      "defaultValue": "redis"
                    },
                    "LANGFLOW_REFRESH_SECURE": {
                      "isOptional": false,
                      "description": "Secure flag on the refresh cookie",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile used to build the service",
                      "defaultValue": "Dockerfile"
                    },
                    "LANGFLOW_REDIS_QUEUE_URL": {
                      "isOptional": false,
                      "description": "Build-event queue, database 1",
                      "defaultValue": "${{Redis.REDIS_URL}}/1"
                    },
                    "LANGFLOW_FS_TOOL_BASE_DIR": {
                      "isOptional": false,
                      "description": "File component sandbox on the volume",
                      "defaultValue": "/app/langflow/fs_tool/fs_sandbox"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "First admin password, created once",
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    },
                    "LANGFLOW_KNOWLEDGE_BASES_DIR": {
                      "isOptional": false,
                      "description": "Knowledge base storage on the volume",
                      "defaultValue": "/app/langflow/knowledge_bases"
                    },
                    "LANGFLOW_ALEMBIC_LOG_TO_STDOUT": {
                      "isOptional": false,
                      "description": "Send migration output to the logs",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:7860": {
                        "port": 7860
                      }
                    }
                  },
                  "volumeMounts": {
                    "19fe3694-6ed9-4c7b-ad41-e24b916ca41d": {
                      "mountPath": "/app/langflow"
                    }
                  }
                },
                "96f25008-e2ea-4c3c-88d5-e73c99aa2849": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "96f25008-e2ea-4c3c-88d5-e73c99aa2849": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ef678af2-7b08-45a4-b20e-63227dd75b77": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.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}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "ef678af2-7b08-45a4-b20e-63227dd75b77": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:16:52.752Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_58523732856e483c8e39",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 72,
    "typical_start_seconds": 30,
    "slowest_service": "Langflow"
  }
}
