{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a9930208-4fd6-4194-904f-2e1b53774154",
    "slug": "-spvZa",
    "name": "Langflow | Open Source Visual Builder for LangChain AI Workflows",
    "description": "Low-code visual builder for RAG and multi-agent AI apps",
    "url": "https://railway.com/deploy/-spvZa",
    "upstream": {
      "image": "langflowai/langflow:1.11.6"
    }
  },
  "services": [
    {
      "name": "langflow",
      "source": {
        "image": "langflowai/langflow:1.11.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:16.15"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "langflow",
      "description": "Port",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "DB_WAIT_HOST",
      "service": "langflow",
      "description": "Postgres private host; the start command waits for it before running Langflow's migrations.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DB_WAIT_PORT",
      "service": "langflow",
      "description": "Postgres port waited on before Langflow starts.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "langflow",
      "description": "Do not track",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_PORT",
      "service": "langflow",
      "description": "Port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "langflow",
      "description": "Run as root so Langflow can write its secret_key file onto the mounted volume (the image runs as a non-root user and the volume is root-owned).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "langflow",
      "description": "Superuser",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "langflow",
      "description": "Auth login",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "langflow",
      "description": "Langflow Config Directory",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "LANGFLOW_SECRET_KEY",
      "service": "langflow",
      "description": "Signs sessions and encrypts API keys and Credential global variables. Must be a valid Fernet key: 43 base64url characters, which pad to 32 bytes. Changing it logs everyone out and makes existing credentials unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "langflow",
      "description": "DB URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_NEW_USER_IS_ACTIVE",
      "service": "langflow",
      "description": "New user is active",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "langflow",
      "description": "Superuser Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "PG Data",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "DB Host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "DB Port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "DB User",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database Name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "DB Password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "DB Name",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "DB URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "DB User",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL Cert Days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "DB Password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "DB Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "-spvZa"
      }
    },
    "cli": "railway deploy --template -spvZa",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a9930208-4fd6-4194-904f-2e1b53774154",
            "serializedConfig": {
              "services": {
                "c89faa00-4228-4ce3-b7a3-7f8606d0b41b": {
                  "icon": "https://framerusercontent.com/images/sVFW2E2X8MFxemdmf7mItwfGy4A.svg",
                  "name": "langflow",
                  "deploy": {
                    "startCommand": "bash -c 'for i in $(seq 1 90); do (echo > /dev/tcp/$DB_WAIT_HOST/$DB_WAIT_PORT) 2>/dev/null && break; echo \"waiting for postgres ($i/90)\"; sleep 2; done; exec python -m langflow run --host 0.0.0.0'",
                    "healthcheckPath": "/health_check",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 3
                  },
                  "source": {
                    "image": "langflowai/langflow:1.11.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port",
                      "defaultValue": "7860"
                    },
                    "DB_WAIT_HOST": {
                      "isOptional": false,
                      "description": "Postgres private host; the start command waits for it before running Langflow's migrations.",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DB_WAIT_PORT": {
                      "isOptional": false,
                      "description": "Postgres port waited on before Langflow starts.",
                      "defaultValue": "5432"
                    },
                    "DO_NOT_TRACK": {
                      "isOptional": false,
                      "description": "Do not track",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_PORT": {
                      "isOptional": false,
                      "description": "Port",
                      "defaultValue": "${{PORT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so Langflow can write its secret_key file onto the mounted volume (the image runs as a non-root user and the volume is root-owned).",
                      "defaultValue": "0"
                    },
                    "LANGFLOW_SUPERUSER": {
                      "isOptional": false,
                      "description": "Superuser",
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "isOptional": false,
                      "description": "Auth login",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Langflow Config Directory",
                      "defaultValue": "/app/langflow"
                    },
                    "LANGFLOW_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs sessions and encrypts API keys and Credential global variables. Must be a valid Fernet key: 43 base64url characters, which pad to 32 bytes. Changing it logs everyone out and makes existing credentials unreadable.",
                      "defaultValue": "{{LANGFLOW_SECRET_KEY}}"
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "isOptional": false,
                      "description": "DB URL",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LANGFLOW_NEW_USER_IS_ACTIVE": {
                      "isOptional": false,
                      "description": "New user is active",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser Password",
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "c89faa00-4228-4ce3-b7a3-7f8606d0b41b": {
                      "mountPath": "/app/langflow"
                    }
                  }
                },
                "de369037-7b7f-44c5-b426-5e9e49084511": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:16.15"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PG Data",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "DB Host",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "DB Port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "DB User",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database Name",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "DB Password",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "DB Name",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "DB URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "DB User",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL Cert Days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "DB Password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "DB Public URL",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    }
                  },
                  "volumeMounts": {
                    "de369037-7b7f-44c5-b426-5e9e49084511": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "langflow",
      "method": "GET",
      "path": "/health_check",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T04:14:39.446Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T07:43:09.031Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9a4a95bc371d40819635",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 150,
    "typical_build_seconds": 0,
    "typical_start_seconds": 56,
    "slowest_service": "langflow"
  }
}
