feat: add flowise

This commit is contained in:
Sun-ZhenXing
2026-01-20 13:10:28 +08:00
parent 10aa0a4e85
commit 1c528c0e64
12 changed files with 162 additions and 31 deletions

21
src/flowise/.env.example Normal file
View File

@@ -0,0 +1,21 @@
# Global Registry Prefix (optional)
# GLOBAL_REGISTRY=
# Flowise Image Version
FLOWISE_VERSION=3.0.12
# Timezone
TZ=UTC
# Port to bind to on the host machine
FLOWISE_PORT_OVERRIDE=3000
# Resource Limits
FLOWISE_CPU_LIMIT=1
FLOWISE_MEMORY_LIMIT=1024M
FLOWISE_CPU_RESERVATION=0.5
FLOWISE_MEMORY_RESERVATION=512M
# Optional basic auth (leave empty to disable)
# FLOWISE_USERNAME=
# FLOWISE_PASSWORD=

32
src/flowise/README.md Normal file
View File

@@ -0,0 +1,32 @@
# Flowise
[English](./README.md) | [中文](./README.zh.md)
Quick start: <https://docs.flowiseai.com>.
This service deploys Flowise, a visual LLM orchestration platform.
## Services
- `flowise`: The Flowise service.
## Configuration
- `GLOBAL_REGISTRY`: The registry prefix for the Flowise image, default is empty.
- `FLOWISE_VERSION`: The version of the Flowise image, default is `3.0.12`.
- `TZ`: The timezone for the container, default is `UTC`.
- `FLOWISE_PORT_OVERRIDE`: The host port for Flowise, default is `3000`.
- `FLOWISE_CPU_LIMIT`: The CPU limit for the Flowise service, default is `1`.
- `FLOWISE_MEMORY_LIMIT`: The memory limit for the Flowise service, default is `1024M`.
- `FLOWISE_CPU_RESERVATION`: The CPU reservation for the Flowise service, default is `0.5`.
- `FLOWISE_MEMORY_RESERVATION`: The memory reservation for the Flowise service, default is `512M`.
- `FLOWISE_USERNAME`: Optional basic auth username. Leave empty to disable.
- `FLOWISE_PASSWORD`: Optional basic auth password. Leave empty to disable.
## Volumes
- `flowise_data`: A volume for storing Flowise data.
## Notes
- The health check uses the `/api/v1/ping` endpoint.

32
src/flowise/README.zh.md Normal file
View File

@@ -0,0 +1,32 @@
# Flowise
[English](./README.md) | [中文](./README.zh.md)
快速开始:<https://docs.flowiseai.com>
此服务用于部署 Flowise一个可视化的 LLM 编排平台。
## 服务
- `flowise`Flowise 服务。
## 配置
- `GLOBAL_REGISTRY`Flowise 镜像的仓库前缀,默认为空。
- `FLOWISE_VERSION`Flowise 镜像版本,默认是 `3.0.12`
- `TZ`:容器时区,默认是 `UTC`
- `FLOWISE_PORT_OVERRIDE`Flowise 的宿主机端口,默认是 `3000`
- `FLOWISE_CPU_LIMIT`Flowise 服务的 CPU 限制,默认是 `1`
- `FLOWISE_MEMORY_LIMIT`Flowise 服务的内存限制,默认是 `1024M`
- `FLOWISE_CPU_RESERVATION`Flowise 服务的 CPU 预留,默认是 `0.5`
- `FLOWISE_MEMORY_RESERVATION`Flowise 服务的内存预留,默认是 `512M`
- `FLOWISE_USERNAME`:可选的基础认证用户名,不设置则禁用。
- `FLOWISE_PASSWORD`:可选的基础认证密码,不设置则禁用。
## 数据卷
- `flowise_data`:用于存储 Flowise 数据的卷。
## 说明
- 健康检查使用 `/api/v1/ping` 端点。

View File

@@ -0,0 +1,44 @@
x-defaults: &defaults
restart: unless-stopped
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
flowise:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}flowiseai/flowise:${FLOWISE_VERSION:-3.0.12}
ports:
- "${FLOWISE_PORT_OVERRIDE:-3000}:3000"
volumes:
- flowise_data:/root/.flowise
environment:
- TZ=${TZ:-UTC}
- PORT=3000
- FLOWISE_USERNAME=${FLOWISE_USERNAME:-}
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD:-}
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:3000/api/v1/ping',res=>process.exit(res.statusCode===200?0:1)).on('error',()=>process.exit(1))"
]
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
deploy:
resources:
limits:
cpus: ${FLOWISE_CPU_LIMIT:-1}
memory: ${FLOWISE_MEMORY_LIMIT:-1024M}
reservations:
cpus: ${FLOWISE_CPU_RESERVATION:-0.5}
memory: ${FLOWISE_MEMORY_RESERVATION:-512M}
volumes:
flowise_data: