---
title: "Langflow template"
description: "A visual builder for language-model flows, with its own PostgreSQL database."
path: "/templates/langflow/"
---

# Langflow

A visual builder for language-model flows, with its own PostgreSQL database.

One command creates the Langflow app and a PostgreSQL database, then connects them. Flow files stay on a disk. The app gets a public address.

## Install

Run it in the environment you want. The command waits until the public address responds.

```
dflow templates:install langflow
```

One app, one PostgreSQL database, and a disk.

## Application

- Name: langflow
- Image: langflowai/langflow:1.13.4
- Port: 7860
- Replicas: 1
- Memory: 1536 Mi
- Disk: 10Gi at /app/langflow
- Address: Public route

## Database

- Name: langflow-db
- Engine: PostgreSQL
- Database: langflow
- Storage: 1Gi

## How they connect

- LANGFLOW_DATABASE_URL is the URL of langflow-db.
- The superuser name is langflow.
- dFlow generates LANGFLOW_SUPERUSER_PASSWORD.
- Automatic login is off.