feat: add flowise
This commit is contained in:
21
src/flowise/.env.example
Normal file
21
src/flowise/.env.example
Normal 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
32
src/flowise/README.md
Normal 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
32
src/flowise/README.zh.md
Normal 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` 端点。
|
||||
44
src/flowise/docker-compose.yaml
Normal file
44
src/flowise/docker-compose.yaml
Normal 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:
|
||||
@@ -1,7 +1,7 @@
|
||||
# Renovate Configuration
|
||||
|
||||
# Image version
|
||||
RENOVATE_VERSION=42.52.5-full
|
||||
RENOVATE_VERSION=42.85.4-full
|
||||
|
||||
# Global registry prefix (optional, e.g., your.registry.com/)
|
||||
GLOBAL_REGISTRY=
|
||||
|
||||
@@ -53,7 +53,7 @@ Key environment variables in `.env`:
|
||||
|
||||
| Variable | Description | Default |
|
||||
| ----------------------- | ----------------------- | -------------- |
|
||||
| `RENOVATE_VERSION` | Renovate image version | `42.52.5-full` |
|
||||
| `RENOVATE_VERSION` | Renovate image version | `42.85.4-full` |
|
||||
| `RENOVATE_PLATFORM` | Platform type | `github` |
|
||||
| `RENOVATE_TOKEN` | Authentication token | **(required)** |
|
||||
| `RENOVATE_REPOSITORIES` | Repositories to process | `''` |
|
||||
|
||||
@@ -53,7 +53,7 @@ Renovate 是一个自动化依赖更新工具,当有新版本可用时,它
|
||||
|
||||
| 变量 | 描述 | 默认值 |
|
||||
| ----------------------- | ----------------- | -------------- |
|
||||
| `RENOVATE_VERSION` | Renovate 镜像版本 | `42.52.5-full` |
|
||||
| `RENOVATE_VERSION` | Renovate 镜像版本 | `42.85.4-full` |
|
||||
| `RENOVATE_PLATFORM` | 平台类型 | `github` |
|
||||
| `RENOVATE_TOKEN` | 身份验证令牌 | **(必需)** |
|
||||
| `RENOVATE_REPOSITORIES` | 要处理的仓库 | `''` |
|
||||
|
||||
@@ -12,7 +12,7 @@ x-defaults: &defaults
|
||||
services:
|
||||
renovate:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}renovate/renovate:${RENOVATE_VERSION:-42.52.5-full}
|
||||
image: ${GLOBAL_REGISTRY:-}renovate/renovate:${RENOVATE_VERSION:-42.85.4-full}
|
||||
|
||||
# Renovate runs as a scheduled job, not a continuous service
|
||||
# Use 'docker compose run --rm renovate' to execute manually
|
||||
|
||||
Reference in New Issue
Block a user