feat(service): add langflow template (#8006)

This commit is contained in:
Viktor Avelino 2026-01-20 16:59:13 -05:00 committed by GitHub
parent cc4b41687a
commit 9bc44f0509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 48 additions and 0 deletions

5
public/svgs/langflow.svg Normal file
View file

@ -0,0 +1,5 @@
<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M47.6875 33.2157H54.5599C55.908 33.2157 57 34.3077 57 35.6557V39.7101C57 41.0578 55.908 42.1498 54.5599 42.1498H48.566C47.9182 42.1498 47.2974 42.4079 46.8395 42.8654L36.5538 53.1495C36.0963 53.6074 35.4756 53.8651 34.8279 53.8651H29.8834C28.5608 53.8651 27.4773 52.8104 27.4434 51.4878L27.3366 47.3486C27.301 45.9769 28.4031 44.8442 29.7766 44.8442H34.0326C34.6803 44.8442 35.3009 44.5865 35.7588 44.1286L45.958 33.9296C46.4159 33.4718 47.0363 33.214 47.6841 33.214L47.6875 33.2157Z" fill="#7528FC"/>
<path d="M27.2823 10.1349H34.1547C35.5027 10.1349 36.5945 11.2269 36.5945 12.5749V16.6292C36.5945 17.9772 35.5027 19.0692 34.1547 19.0692H28.1606C27.5129 19.0692 26.8923 19.3269 26.4345 19.7847L16.1488 30.0704C15.691 30.5282 15.0704 30.786 14.4227 30.786H9.4782C8.15564 30.786 7.07211 29.7313 7.0382 28.4087L6.9314 24.2697C6.89577 22.8979 7.99791 21.7669 9.3714 21.7669H13.6274C14.2751 21.7669 14.8957 21.5092 15.3536 21.0514L25.5528 10.8522C26.0106 10.3944 26.6346 10.1349 27.2823 10.1349Z" fill="#FF3276"/>
<path d="M47.6875 15.3574H54.5599C55.908 15.3574 57 16.4494 57 17.7974V21.8517C57 23.1997 55.908 24.2917 54.5599 24.2917H48.566C47.9182 24.2917 47.2974 24.5494 46.8395 25.0072L36.5538 35.2929C36.0963 35.7507 35.4756 36.0086 34.8279 36.0086H28.8203C28.1912 36.0086 27.5858 36.2511 27.1314 36.6869L15.5842 47.7524C15.1297 48.1882 14.5244 48.4307 13.8953 48.4307H9.68677C8.33875 48.4307 7.24677 47.3368 7.24677 45.9906V41.8244C7.24677 40.4766 8.33875 39.3847 9.68677 39.3847H13.8648C14.5125 39.3847 15.1331 39.1266 15.591 38.6691L26.5566 27.7033C27.0144 27.2455 27.635 26.9878 28.2827 26.9878H34.0326C34.6803 26.9878 35.3009 26.73 35.7588 26.2722L45.958 16.073C46.4159 15.6152 47.0397 15.3574 47.6875 15.3574Z" fill="#F480FF"/>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -0,0 +1,43 @@
# documentation: https://docs.langflow.org
# slogan: Langflow is an open-source, Python-based, customizable framework for building AI applications.
# category: ai
# tags: langflow, ai, openai, gpt, llm, workflow, automation, open source, low code
# logo: svgs/langflow.svg
# port: 7860
services:
langflow:
image: langflowai/langflow:1.7.2
environment:
- SERVICE_URL_LANGFLOW_7860
- LANGFLOW_AUTO_LOGIN=${LANGFLOW_AUTO_LOGIN:-false}
- LANGFLOW_SUPERUSER=$SERVICE_USER_LANGFLOW
- LANGFLOW_SUPERUSER_PASSWORD=$SERVICE_PASSWORD_LANGFLOW
- LANGFLOW_DATABASE_URL=postgresql://$SERVICE_USER_POSTGRES:$SERVICE_PASSWORD_POSTGRES@postgres:5432/${POSTGRES_DB:-langflow-db}
- LANGFLOW_CONFIG_DIR=app/langflow
- LANGFLOW_HOST=0.0.0.0
- PORT=7860
healthcheck:
test: ["CMD-SHELL", "curl -f http://127.0.0.1:7860/health"]
interval: 5s
timeout: 20s
retries: 10
depends_on:
postgres:
condition: service_healthy
volumes:
- langflow-data:/app/langflow
postgres:
image: postgres:18-alpine
environment:
- POSTGRES_USER=$SERVICE_USER_POSTGRES
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
- POSTGRES_DB=${POSTGRES_DB:-langflow-db}
volumes:
- langflow-postgres:/var/lib/postgres/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 20s
retries: 10