{
  "manifest_version": "1.0.0",
  "template": {
    "id": "26b393ad-13e0-435e-82ff-80d11ff1164b",
    "slug": "langflow-production",
    "name": "Langflow | Visual AI Agent & RAG Builder with Postgres",
    "description": "Build AI agents, RAG and MCP servers visually. Login on, pinned, Postgres.",
    "url": "https://railway.com/deploy/langflow-production",
    "upstream": {
      "image": "langflowai/langflow:1.12.6"
    }
  },
  "services": [
    {
      "name": "Langflow",
      "source": {
        "image": "langflowai/langflow:1.12.6"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Langflow",
      "description": "Port Langflow listens on - leave as is.",
      "secret": false,
      "strategy": "default",
      "default": "7860"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Langflow",
      "description": "Runs as root so Langflow can write to the volume (Railway mounts it root-owned).",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "LANGFLOW_LOG_LEVEL",
      "service": "Langflow",
      "description": "Log verbosity (debug, info, warning, error).",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "Langflow",
      "description": "Admin username for the login page.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "Langflow",
      "description": "Keep false. True turns off the login page, so anyone with the URL would get admin access.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "Langflow",
      "description": "Uploaded files, knowledge bases and logs, on the volume.",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "LANGFLOW_SECRET_KEY",
      "service": "Langflow",
      "description": "Signs logins and encrypts the API keys and global variables you store in Langflow. 43 url-safe characters (32 bytes base64), as Langflow requires. Never change or lose it: stored keys can't be decrypted without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "Langflow",
      "description": "Flows, users, messages and run history live in Postgres.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LANGFLOW_ACCESS_SECURE",
      "service": "Langflow",
      "description": "Login cookies are HTTPS-only (Railway serves HTTPS).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_ENABLE_SIGNUP",
      "service": "Langflow",
      "description": "Public sign-up on the login page. Leave false; turn it on briefly to let teammates register (see the template README).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_REFRESH_SECURE",
      "service": "Langflow",
      "description": "Login cookies are HTTPS-only (Railway serves HTTPS).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "Langflow",
      "description": "Admin password, generated at deploy. Find it here, under Variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LANGFLOW_RATE_LIMIT_PER_MINUTE",
      "service": "Langflow",
      "description": "Login attempts per minute. Railway's proxy makes every visitor look like one IP, so this is shared by everyone.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "langflow"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "langflow"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langflow-production"
      }
    },
    "cli": "railway deploy --template langflow-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "26b393ad-13e0-435e-82ff-80d11ff1164b",
            "serializedConfig": {
              "services": {
                "23f7caf1-7ce7-484f-bfa8-07cf4ea10455": {
                  "icon": "https://raw.githubusercontent.com/nomideusz/langflow-railway/main/icon.png",
                  "name": "Langflow",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "langflowai/langflow:1.12.6"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Langflow listens on - leave as is.",
                      "defaultValue": "7860"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs as root so Langflow can write to the volume (Railway mounts it root-owned).",
                      "defaultValue": "0"
                    },
                    "LANGFLOW_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity (debug, info, warning, error).",
                      "defaultValue": "info"
                    },
                    "LANGFLOW_SUPERUSER": {
                      "isOptional": false,
                      "description": "Admin username for the login page.",
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "isOptional": false,
                      "description": "Keep false. True turns off the login page, so anyone with the URL would get admin access.",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "isOptional": false,
                      "description": "Uploaded files, knowledge bases and logs, on the volume.",
                      "defaultValue": "/app/langflow"
                    },
                    "LANGFLOW_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Signs logins and encrypts the API keys and global variables you store in Langflow. 43 url-safe characters (32 bytes base64), as Langflow requires. Never change or lose it: stored keys can't be decrypted without it.",
                      "defaultValue": "{{LANGFLOW_SECRET_KEY}}"
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Flows, users, messages and run history live in Postgres.",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "LANGFLOW_ACCESS_SECURE": {
                      "isOptional": false,
                      "description": "Login cookies are HTTPS-only (Railway serves HTTPS).",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_ENABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Public sign-up on the login page. Leave false; turn it on briefly to let teammates register (see the template README).",
                      "defaultValue": "false"
                    },
                    "LANGFLOW_REFRESH_SECURE": {
                      "isOptional": false,
                      "description": "Login cookies are HTTPS-only (Railway serves HTTPS).",
                      "defaultValue": "true"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "isOptional": false,
                      "description": "Admin password, generated at deploy. Find it here, under Variables.",
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    },
                    "LANGFLOW_RATE_LIMIT_PER_MINUTE": {
                      "isOptional": false,
                      "description": "Login attempts per minute. Railway's proxy makes every visitor look like one IP, so this is shared by everyone.",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "1d04b7a7-ab06-4ef7-bf27-cb030ece6f6d": {
                      "mountPath": "/app/langflow"
                    }
                  }
                },
                "e9a01a7f-c983-4442-8a3b-16fd37fd75d2": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "langflow"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "langflow"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "bca0967d-5249-461b-96c9-2ab6ac077190": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Langflow",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T04:14:41.301Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T01:15:53.234Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_73b5b2895413419a9353",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 0,
    "typical_start_seconds": 50,
    "slowest_service": "Langflow"
  }
}
