---
title: "Deploy Langflow"
description: "Visual builder for AI agents, workflows, and API applications."
category: "AI/ML"
url: https://railway.com/deploy/langflow-1
---

# Deploy Langflow

Visual builder for AI agents, workflows, and API applications.

**[Deploy Langflow on Railway](https://railway.com/template/langflow-1)**

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Postgres

- **Image:** postgres:16.14-trixie

### Langflow

- **Image:** langflowai/langflow:1.11.0
- **Health check:** /health_check
- **Public domain:** Yes

## Documentation

# Deploy and Host Langflow on Railway

Langflow is an open-source visual platform for building and deploying AI agents, workflows, and API applications. It combines drag-and-drop authoring, custom Python components, an interactive playground, and built-in API and MCP servers, with support for major model providers, vector databases, and AI tools.

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/deploy/langflow-1)

> **Published:** https://railway.com/deploy/langflow-1 (marketplace code `langflow-1`, category `AI/ML`). See [TEMPLATE.md](./TEMPLATE.md) for the publication record and complete variable audit.

## About Hosting Langflow

Hosting Langflow on Railway runs the official Langflow 1.11.0 container with PostgreSQL 16.14. Langflow listens on port 7860, runs database migrations during startup, and uses Railway private networking for its database connection. A public Railway domain exposes only the authenticated Langflow UI and APIs. Persistent volumes retain Langflow configuration, encrypted credentials, files, logs, and PostgreSQL data across restarts. The template disables auto-login, signup, telemetry, and superuser CLI creation; generates independent database, encryption, and administrator secrets; and leaves external AI provider API keys optional with no defaults.

## Common Use Cases

- Visually design, test, and deploy AI agents and multi-step workflows
- Expose workflows as authenticated APIs or MCP tools for other applications
- Prototype RAG, automation, and multi-provider LLM applications with custom Python components

## Dependencies for Langflow Hosting

- PostgreSQL 16.14 for users, flows, credentials, messages, and migration state
- Persistent Railway volumes for `/app/langflow` and `/var/lib/postgresql/data`

### Deployment Dependencies

- [Langflow Docker deployment documentation](https://docs.langflow.org/deployment-docker)
- [Langflow authentication documentation](https://docs.langflow.org/configuration-authentication)
- [Langflow 1.11.0 release](https://github.com/langflow-ai/langflow/releases/tag/v1.11.0)
- [Umbrel Langflow deployment contract](https://github.com/getumbrel/umbrel-apps/tree/master/langflow)

## Implementation Details

| Setting | Railway strategy |
| --- | --- |
| Images | `langflowai/langflow:1.11.0` and `postgres:16.14-trixie` |
| Public endpoint | Railway HTTPS domain targeting Langflow's documented port `7860` |
| Health check | `/health_check`, which validates the application, chat service, and PostgreSQL connection |
| Database | `LANGFLOW_DATABASE_URL=${{Postgres.DATABASE_URL}}` over Railway private networking |
| Persistence | Volumes at `/app/langflow` and `/var/lib/postgresql/data`; `PGDATA` uses a subdirectory to avoid the mount's `lost+found` entry |
| Authentication | Auto-login and signup disabled; administrator password and `LANGFLOW_SECRET_KEY` generated per template deployment |
| Provider keys | Optional no-default inputs; credentials can instead be added after login through Langflow's provider settings |
| Volume permissions | `RAILWAY_RUN_UID=0`, as Railway documents for images that otherwise run as a non-root UID against root-mounted volumes |

## Why Deploy Langflow on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Langflow on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/langflow-1
