Instalação Langflow

Link: https://docs.langflow.org/deployment-docker

This guide will help you get LangFlow up and running using Docker and Docker Compose.

Prerequisites


Docker


Clone repo and build Docker container

  1. Clone the LangFlow repository:

    git clone https://github.com/langflow-ai/langflow.git

  2. Navigate to the docker_example directory:

    cd langflow/docker_example

  3. Run the Docker Compose file:

    docker compose up

LangFlow will now be accessible at http://localhost:7860/.

Docker Compose configuration

The Docker Compose configuration spins up two services: langflow and postgres.

LangFlow service

The langflow service uses the langflowai/langflow:latest Docker image and exposes port 7860. It depends on the postgres service.

Environment variables:

Volumes:

PostgreSQL service

The postgres service uses the postgres:16 Docker image and exposes port 5432.

Environment variables:

Volumes:

Switch to a specific LangFlow version

If you want to use a specific version of LangFlow, you can modify the image field under the langflow service in the Docker Compose file. For example, to use version 1.0-alpha, change langflowai/langflow:latest to langflowai/langflow:1.0-alpha.


Revision #2
Created 16 September 2024 21:08:31 by Administrador
Updated 16 September 2024 21:10:49 by Administrador