{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b3192271-aa62-4950-99ec-6fc08dfe3681",
    "slug": "kit-langflow-build-0919",
    "name": "Langflow",
    "description": "Langflow: visual builder for AI agents and RAG flows. Requires Hobby plan",
    "url": "https://railway.com/deploy/kit-langflow-build-0919",
    "upstream": {
      "image": "langflowai/langflow:1.12.2@sha256:79c02794adebe82d756b7152ce4feebe4a5426e1faf3fe5b5d0dd08f304510c4"
    }
  },
  "services": [
    {
      "name": "Langflow",
      "source": {
        "image": "langflowai/langflow:1.12.2@sha256:79c02794adebe82d756b7152ce4feebe4a5426e1faf3fe5b5d0dd08f304510c4"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17@sha256:f79fd6806f02297f206ce01258f287e4f93faea2a6a2aaaffc24fe684417f0fb"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Langflow",
      "description": "Same as LANGFLOW_PORT, for Railway's port detection.",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "DO_NOT_TRACK",
      "service": "Langflow",
      "description": "Disables Langflow's anonymous usage telemetry.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_HOST",
      "service": "Langflow",
      "description": "Bind address. Must be 0.0.0.0 for Railway's edge to reach the container.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "LANGFLOW_PORT",
      "service": "Langflow",
      "description": "Port Langflow listens on. Railway's domain and healthcheck target this port.",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Langflow",
      "description": "Run the container as root so Langflow can write to its volume (Railway mounts volumes root-owned; the image runs as uid 1000). Same approach Railway's own Redis template uses.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "Langflow",
      "description": "Username of the first (admin) account, created on first boot.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "Langflow",
      "description": "Require a login instead of opening the editor to anyone with the URL. Keep false on a public domain.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "Langflow",
      "description": "Where Langflow keeps its secret key, uploaded files and profile pictures. Mounted on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Langflow",
      "description": "Companion to RAILWAY_RUN_UID=0.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "Langflow",
      "description": "Postgres connection string. Wired to the Postgres service in this template over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LANGFLOW_NEW_USER_IS_ACTIVE",
      "service": "Langflow",
      "description": "New sign-ups must be activated by the admin before they can log in.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "Langflow",
      "description": "Password of the admin account. Generated for you - copy it from this Variables tab after deploying, then change it in the UI if you like.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Langflow",
      "description": "Seconds Railway keeps the old container serving while the new one starts and passes its healthcheck.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory, inside the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private-network hostname of the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Postgres superuser name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default database name used by psql and the Postgres client tools.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for the Postgres superuser.",
      "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-network connection string other services use.",
      "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": "Validity window, in days, for the self-signed TLS certificate this image generates.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, generated once at deploy time.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway keeps the old container serving during a redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "kit-langflow-build-0919"
      }
    },
    "cli": "railway deploy --template kit-langflow-build-0919",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b3192271-aa62-4950-99ec-6fc08dfe3681",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "044124fd-cd74-4d54-bada-923975ba3b52": {
                  "icon": "https://bogusz.co/external/langflow-icon.png",
                  "name": "Langflow",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'm=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); if [ \"$m\" != max ] && [ \"$m\" -lt 1500000000 ]; then echo \"Langflow needs about 1.5 GB of RAM to start, but this service is limited to $((m/1048576)) MB. Railway Free (0.5 GB) and Trial (1 GB) plans cannot run it. Upgrade to Hobby, or raise the memory limit in the service Settings, then redeploy.\"; sleep 5; exit 1; fi; exec langflow run'",
                    "healthcheckPath": "/health_check",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langflowai/langflow:1.12.2@sha256:79c02794adebe82d756b7152ce4feebe4a5426e1faf3fe5b5d0dd08f304510c4"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Same as LANGFLOW_PORT, for Railway's port detection.",
                      "defaultValue": "7860"
                    },
                    "DO_NOT_TRACK": {
                      "description": "Disables Langflow's anonymous usage telemetry.",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_HOST": {
                      "isOptional": false,
                      "description": "Bind address. Must be 0.0.0.0 for Railway's edge to reach the container.",
                      "defaultValue": "0.0.0.0"
                    },
                    "LANGFLOW_PORT": {
                      "isOptional": false,
                      "description": "Port Langflow listens on. Railway's domain and healthcheck target this port.",
                      "defaultValue": "7860"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional - OpenAI key made available to components. You can also add provider keys later as global variables inside Langflow.",
                      "defaultValue": ""
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run the container as root so Langflow can write to its volume (Railway mounts volumes root-owned; the image runs as uid 1000). Same approach Railway's own Redis template uses.",
                      "defaultValue": "0"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional - Anthropic key made available to components.",
                      "defaultValue": ""
                    },
                    "LANGFLOW_SUPERUSER": {
                      "isOptional": false,
                      "description": "Username of the first (admin) account, created on first boot.",
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "isOptional": false,
                      "description": "Require a login instead of opening the editor to anyone with the URL. Keep false on a public domain.",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Where Langflow keeps its secret key, uploaded files and profile pictures. Mounted on the volume.",
                      "defaultValue": "/app/langflow"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "description": "Companion to RAILWAY_RUN_UID=0.",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string. Wired to the Postgres service in this template over the private network.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "LANGFLOW_NEW_USER_IS_ACTIVE": {
                      "description": "New sign-ups must be activated by the admin before they can log in.",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "Password of the admin account. Generated for you - copy it from this Variables tab after deploying, then change it in the UI if you like.",
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "description": "Seconds Railway keeps the old container serving while the new one starts and passes its healthcheck.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:7860": {
                        "port": 7860
                      }
                    }
                  },
                  "volumeMounts": {
                    "044124fd-cd74-4d54-bada-923975ba3b52": {
                      "mountPath": "/app/langflow"
                    }
                  }
                },
                "392c6d24-f24b-49d9-a4c7-5f5b61d342a3": {
                  "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:17@sha256:f79fd6806f02297f206ce01258f287e4f93faea2a6a2aaaffc24fe684417f0fb"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory, inside the mounted volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private-network hostname of the Postgres service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Postgres superuser name.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name used by psql and the Postgres client tools.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the Postgres superuser.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private-network connection string other services use.",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity window, in days, for the self-signed TLS certificate this image generates.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated once at deploy time.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway keeps the old container serving during a redeploy.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "392c6d24-f24b-49d9-a4c7-5f5b61d342a3": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Langflow",
      "method": "GET",
      "path": "/health_check",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-05T05:04:29.825Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a350e71ef9c84a40b3a3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 80,
    "typical_build_seconds": 0,
    "typical_start_seconds": 40,
    "slowest_service": "Langflow"
  }
}
