chore: update versions

This commit is contained in:
Sun-ZhenXing
2025-12-29 21:40:58 +08:00
parent 953bb146ba
commit cdc76a8ee5
20 changed files with 168 additions and 26 deletions

View File

@@ -1,5 +1,13 @@
# Bifrost Gateway Version
BIFROST_VERSION=v1.3.48
BIFROST_VERSION=v1.3.54
# Port to bind to on the host machine
BIFROST_PORT=28080
# Telemetry
PROMETHEUS_VERSION=v3.0.1
PROMETHEUS_PORT=29090
GRAFANA_VERSION=11.4.0
GRAFANA_PORT=23000
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin

View File

@@ -7,12 +7,39 @@ Bifrost is a lightweight, high-performance LLM gateway that supports multiple mo
## Services
- `bifrost`: The LLM gateway service.
- `prometheus`: Prometheus for metrics collection (enabled with `--profile telemetry`).
- `grafana`: Grafana for visualization (enabled with `--profile telemetry`).
## Configuration
- `BIFROST_VERSION`: The version of the Bifrost image, default is `v1.3.48`.
- `BIFROST_VERSION`: The version of the Bifrost image, default is `v1.3.54`.
- `BIFROST_PORT`: The port for the Bifrost service, default is `28080`.
### Telemetry
- `PROMETHEUS_VERSION`: Prometheus version, default `v3.0.1`.
- `PROMETHEUS_PORT`: Prometheus port, default `29090`.
- `GRAFANA_VERSION`: Grafana version, default `11.4.0`.
- `GRAFANA_PORT`: Grafana port, default `23000`.
- `GRAFANA_ADMIN_USER`: Grafana admin user, default `admin`.
- `GRAFANA_ADMIN_PASSWORD`: Grafana admin password, default `admin`.
## Usage
Start the gateway:
```bash
docker compose up -d
```
Start with telemetry (Prometheus + Grafana):
```bash
docker compose --profile telemetry up -d
```
## Volumes
- `bifrost_data`: A volume for storing Bifrost data.
- `prometheus_data`: A volume for storing Prometheus data.
- `grafana_data`: A volume for storing Grafana data.

View File

@@ -7,12 +7,39 @@ Bifrost 是一个轻量级、高性能的 LLM 网关,支持多种模型和提
## 服务
- `bifrost`: LLM 网关服务。
- `prometheus`: 用于指标收集的 Prometheus通过 `--profile telemetry` 启用)。
- `grafana`: 用于可视化的 Grafana通过 `--profile telemetry` 启用)。
## 配置
- `BIFROST_VERSION`: Bifrost 镜像的版本,默认为 `v1.3.48`
- `BIFROST_VERSION`: Bifrost 镜像的版本,默认为 `v1.3.54`
- `BIFROST_PORT`: Bifrost 服务的端口,默认为 `28080`
### 遥测 (Telemetry)
- `PROMETHEUS_VERSION`: Prometheus 版本,默认为 `v3.0.1`
- `PROMETHEUS_PORT`: Prometheus 端口,默认为 `29090`
- `GRAFANA_VERSION`: Grafana 版本,默认为 `11.4.0`
- `GRAFANA_PORT`: Grafana 端口,默认为 `23000`
- `GRAFANA_ADMIN_USER`: Grafana 管理员用户,默认为 `admin`
- `GRAFANA_ADMIN_PASSWORD`: Grafana 管理员密码,默认为 `admin`
## 使用
启动网关:
```bash
docker compose up -d
```
启动带有遥测功能Prometheus + Grafana的网关
```bash
docker compose --profile telemetry up -d
```
## 卷
- `bifrost_data`: 用于存储 Bifrost 数据的卷。
- `prometheus_data`: 用于存储 Prometheus 数据的卷。
- `grafana_data`: 用于存储 Grafana 数据的卷。

View File

@@ -0,0 +1,9 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
url: http://prometheus:9090
isDefault: true
access: proxy
editable: true

View File

@@ -0,0 +1,8 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'bifrost'
metrics_path: '/metrics'
static_configs:
- targets: ['bifrost:8080']

View File

@@ -9,7 +9,7 @@ x-defaults: &defaults
services:
bifrost:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}maximhq/bifrost:${BIFROST_VERSION:-v1.3.48}
image: ${GLOBAL_REGISTRY:-}maximhq/bifrost:${BIFROST_VERSION:-v1.3.54}
volumes:
- bifrost_data:/app/data
ports:
@@ -31,5 +31,64 @@ services:
retries: 3
start_period: 10s
prometheus:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}prom/prometheus:${PROMETHEUS_VERSION:-v3.8.1}
profiles: ["telemetry"]
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- "${PROMETHEUS_PORT:-29090}:9090"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9090/-/healthy"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: ${PROMETHEUS_CPU_LIMIT:-0.50}
memory: ${PROMETHEUS_MEMORY_LIMIT:-512M}
reservations:
cpus: ${PROMETHEUS_CPU_RESERVATION:-0.10}
memory: ${PROMETHEUS_MEMORY_RESERVATION:-128M}
grafana:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}grafana/grafana:${GRAFANA_VERSION:-12.3.1}
profiles: ["telemetry"]
volumes:
- ./config/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
ports:
- "${GRAFANA_PORT:-23000}:3000"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: ${GRAFANA_CPU_LIMIT:-0.50}
memory: ${GRAFANA_MEMORY_LIMIT:-512M}
reservations:
cpus: ${GRAFANA_CPU_RESERVATION:-0.10}
memory: ${GRAFANA_MEMORY_RESERVATION:-128M}
volumes:
bifrost_data:
prometheus_data:
grafana_data:

View File

@@ -2,7 +2,7 @@
TZ=UTC
# MongoDB Version
MONGO_VERSION=8.0.13
MONGO_VERSION=8.2.3
# MongoDB root credentials
MONGO_INITDB_ROOT_USERNAME=root

View File

@@ -9,6 +9,7 @@ This service sets up a single-node MongoDB replica set, ideal for development an
1. Generate a key file for the replica set:
```bash
mkdir -p ./secrets
openssl rand -base64 756 > ./secrets/rs0.key
```
@@ -41,7 +42,7 @@ This service sets up a single-node MongoDB replica set, ideal for development an
## Configuration
- `TZ`: The timezone for the container, default is `UTC`.
- `MONGO_VERSION`: The version of the MongoDB image, default is `8.0.13`.
- `MONGO_VERSION`: The version of the MongoDB image, default is `8.2.3`.
- `MONGO_INITDB_ROOT_USERNAME`: The root username for the database, default is `root`.
- `MONGO_INITDB_ROOT_PASSWORD`: The root password for the database, default is `password`.
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.

View File

@@ -9,6 +9,7 @@
1. 为副本集生成一个密钥文件:
```bash
mkdir -p ./secrets
openssl rand -base64 756 > ./secrets/rs0.key
```
@@ -41,7 +42,7 @@
## 配置
- `TZ`: 容器的时区,默认为 `UTC`。
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.0.13`。
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.2.3`。
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。

View File

@@ -8,7 +8,7 @@ x-defaults: &defaults
x-mongo: &mongo
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
environment:
TZ: ${TZ:-UTC}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
@@ -52,7 +52,7 @@ services:
mongo-init:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
restart: on-failure
depends_on:
mongo1:

View File

@@ -1,5 +1,5 @@
# MongoDB Version
MONGO_VERSION=8.0.13
MONGO_VERSION=8.2.3
# MongoDB root credentials
MONGO_INITDB_ROOT_USERNAME=root

View File

@@ -9,6 +9,7 @@ This service sets up a MongoDB replica set with three members.
1. Generate a key file for the replica set:
```bash
mkdir -p ./secrets
openssl rand -base64 756 > ./secrets/rs0.key
```
@@ -41,7 +42,7 @@ This service sets up a MongoDB replica set with three members.
## Configuration
- `TZ`: The timezone for the container, default is `UTC`.
- `MONGO_VERSION`: The version of the MongoDB image, default is `8.0.13`.
- `MONGO_VERSION`: The version of the MongoDB image, default is `8.2.3`.
- `MONGO_INITDB_ROOT_USERNAME`: The root username for the database, default is `root`.
- `MONGO_INITDB_ROOT_PASSWORD`: The root password for the database, default is `password`.
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.

View File

@@ -9,6 +9,7 @@
1. 为副本集生成一个密钥文件:
```bash
mkdir -p ./secrets
openssl rand -base64 756 > ./secrets/rs0.key
```
@@ -41,7 +42,7 @@
## 配置
- `TZ`: 容器的时区,默认为 `UTC`。
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.0.13`。
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.2.3`。
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。

View File

@@ -8,7 +8,7 @@ x-defaults: &defaults
x-mongo: &mongo
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
environment:
TZ: ${TZ:-UTC}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
@@ -60,7 +60,7 @@ services:
mongo-init:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
restart: on-failure
depends_on:
mongo1:

View File

@@ -1,5 +1,5 @@
# MongoDB Version
MONGO_VERSION=8.0.13
MONGO_VERSION=8.2.3
# MongoDB root credentials
MONGO_INITDB_ROOT_USERNAME=root

View File

@@ -33,7 +33,7 @@ MongoDB is a document database designed for ease of application development and
| Variable | Description | Default |
| ---------------------------- | ---------------- | ---------- |
| `MONGO_VERSION` | MongoDB version | `8.0.13` |
| `MONGO_VERSION` | MongoDB version | `8.2.3` |
| `MONGO_INITDB_ROOT_USERNAME` | Root username | `root` |
| `MONGO_INITDB_ROOT_PASSWORD` | Root password | `password` |
| `MONGO_INITDB_DATABASE` | Initial database | `admin` |

View File

@@ -33,7 +33,7 @@ MongoDB 是一个为应用程序开发和扩展的简易性而设计的文档数
| 变量 | 描述 | 默认值 |
| ---------------------------- | ------------ | ---------- |
| `MONGO_VERSION` | MongoDB 版本 | `8.0.13` |
| `MONGO_VERSION` | MongoDB 版本 | `8.2.3` |
| `MONGO_INITDB_ROOT_USERNAME` | 根用户名 | `root` |
| `MONGO_INITDB_ROOT_PASSWORD` | 根密码 | `password` |
| `MONGO_INITDB_DATABASE` | 初始数据库 | `admin` |

View File

@@ -9,7 +9,7 @@ x-defaults: &defaults
services:
mongo:
<<: *defaults
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
environment:
TZ: ${TZ:-UTC}
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}