chore: update versions
This commit is contained in:
@@ -14,7 +14,7 @@ Compose Anything helps users quickly deploy various services by providing a set
|
|||||||
| [Apache Kafka](./src/kafka) | 7.8.0 |
|
| [Apache Kafka](./src/kafka) | 7.8.0 |
|
||||||
| [Apache Pulsar](./src/pulsar) | 4.0.7 |
|
| [Apache Pulsar](./src/pulsar) | 4.0.7 |
|
||||||
| [Apache RocketMQ](./src/rocketmq) | 5.3.1 |
|
| [Apache RocketMQ](./src/rocketmq) | 5.3.1 |
|
||||||
| [Bifrost Gateway](./src/bifrost-gateway) | 1.3.48 |
|
| [Bifrost Gateway](./src/bifrost-gateway) | v1.3.54 |
|
||||||
| [Bolt.diy](./src/bolt-diy) | latest |
|
| [Bolt.diy](./src/bolt-diy) | latest |
|
||||||
| [Budibase](./src/budibase) | 3.23.0 |
|
| [Budibase](./src/budibase) | 3.23.0 |
|
||||||
| [Bytebot](./src/bytebot) | edge |
|
| [Bytebot](./src/bytebot) | edge |
|
||||||
@@ -62,9 +62,9 @@ Compose Anything helps users quickly deploy various services by providing a set
|
|||||||
| [MinerU vLLM](./builds/mineru-vllm) | 2.6.4 |
|
| [MinerU vLLM](./builds/mineru-vllm) | 2.6.4 |
|
||||||
| [MinIO](./src/minio) | RELEASE.2025-09-07T16-13-09Z |
|
| [MinIO](./src/minio) | RELEASE.2025-09-07T16-13-09Z |
|
||||||
| [MLflow](./src/mlflow) | v2.20.2 |
|
| [MLflow](./src/mlflow) | v2.20.2 |
|
||||||
| [MongoDB ReplicaSet Single](./src/mongodb-replicaset-single) | 8.0.13 |
|
| [MongoDB ReplicaSet Single](./src/mongodb-replicaset-single) | 8.2.3 |
|
||||||
| [MongoDB ReplicaSet](./src/mongodb-replicaset) | 8.0.13 |
|
| [MongoDB ReplicaSet](./src/mongodb-replicaset) | 8.2.3 |
|
||||||
| [MongoDB Standalone](./src/mongodb-standalone) | 8.0.13 |
|
| [MongoDB Standalone](./src/mongodb-standalone) | 8.2.3 |
|
||||||
| [MySQL](./src/mysql) | 9.4.0 |
|
| [MySQL](./src/mysql) | 9.4.0 |
|
||||||
| [n8n](./src/n8n) | 1.114.0 |
|
| [n8n](./src/n8n) | 1.114.0 |
|
||||||
| [Nacos](./src/nacos) | v3.1.0 |
|
| [Nacos](./src/nacos) | v3.1.0 |
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ Compose Anything 通过提供一组高质量的 Docker Compose 配置文件,
|
|||||||
| [Apache Kafka](./src/kafka) | 7.8.0 |
|
| [Apache Kafka](./src/kafka) | 7.8.0 |
|
||||||
| [Apache Pulsar](./src/pulsar) | 4.0.7 |
|
| [Apache Pulsar](./src/pulsar) | 4.0.7 |
|
||||||
| [Apache RocketMQ](./src/rocketmq) | 5.3.1 |
|
| [Apache RocketMQ](./src/rocketmq) | 5.3.1 |
|
||||||
| [Bifrost Gateway](./src/bifrost-gateway) | 1.3.48 |
|
| [Bifrost Gateway](./src/bifrost-gateway) | v1.3.54 |
|
||||||
| [Bolt.diy](./src/bolt-diy) | latest |
|
| [Bolt.diy](./src/bolt-diy) | latest |
|
||||||
| [Budibase](./src/budibase) | 3.23.0 |
|
| [Budibase](./src/budibase) | 3.23.0 |
|
||||||
| [Bytebot](./src/bytebot) | edge |
|
| [Bytebot](./src/bytebot) | edge |
|
||||||
@@ -62,9 +62,9 @@ Compose Anything 通过提供一组高质量的 Docker Compose 配置文件,
|
|||||||
| [MinerU vLLM](./builds/mineru-vllm) | 2.6.4 |
|
| [MinerU vLLM](./builds/mineru-vllm) | 2.6.4 |
|
||||||
| [MinIO](./src/minio) | RELEASE.2025-09-07T16-13-09Z |
|
| [MinIO](./src/minio) | RELEASE.2025-09-07T16-13-09Z |
|
||||||
| [MLflow](./src/mlflow) | v2.20.2 |
|
| [MLflow](./src/mlflow) | v2.20.2 |
|
||||||
| [MongoDB ReplicaSet Single](./src/mongodb-replicaset-single) | 8.0.13 |
|
| [MongoDB ReplicaSet Single](./src/mongodb-replicaset-single) | 8.2.3 |
|
||||||
| [MongoDB ReplicaSet](./src/mongodb-replicaset) | 8.0.13 |
|
| [MongoDB ReplicaSet](./src/mongodb-replicaset) | 8.2.3 |
|
||||||
| [MongoDB Standalone](./src/mongodb-standalone) | 8.0.13 |
|
| [MongoDB Standalone](./src/mongodb-standalone) | 8.2.3 |
|
||||||
| [MySQL](./src/mysql) | 9.4.0 |
|
| [MySQL](./src/mysql) | 9.4.0 |
|
||||||
| [n8n](./src/n8n) | 1.114.0 |
|
| [n8n](./src/n8n) | 1.114.0 |
|
||||||
| [Nacos](./src/nacos) | v3.1.0 |
|
| [Nacos](./src/nacos) | v3.1.0 |
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
# Bifrost Gateway Version
|
# Bifrost Gateway Version
|
||||||
BIFROST_VERSION=v1.3.48
|
BIFROST_VERSION=v1.3.54
|
||||||
|
|
||||||
# Port to bind to on the host machine
|
# Port to bind to on the host machine
|
||||||
BIFROST_PORT=28080
|
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
|
||||||
|
|||||||
@@ -7,12 +7,39 @@ Bifrost is a lightweight, high-performance LLM gateway that supports multiple mo
|
|||||||
## Services
|
## Services
|
||||||
|
|
||||||
- `bifrost`: The LLM gateway service.
|
- `bifrost`: The LLM gateway service.
|
||||||
|
- `prometheus`: Prometheus for metrics collection (enabled with `--profile telemetry`).
|
||||||
|
- `grafana`: Grafana for visualization (enabled with `--profile telemetry`).
|
||||||
|
|
||||||
## Configuration
|
## 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`.
|
- `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
|
## Volumes
|
||||||
|
|
||||||
- `bifrost_data`: A volume for storing Bifrost data.
|
- `bifrost_data`: A volume for storing Bifrost data.
|
||||||
|
- `prometheus_data`: A volume for storing Prometheus data.
|
||||||
|
- `grafana_data`: A volume for storing Grafana data.
|
||||||
|
|||||||
@@ -7,12 +7,39 @@ Bifrost 是一个轻量级、高性能的 LLM 网关,支持多种模型和提
|
|||||||
## 服务
|
## 服务
|
||||||
|
|
||||||
- `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`。
|
- `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 数据的卷。
|
- `bifrost_data`: 用于存储 Bifrost 数据的卷。
|
||||||
|
- `prometheus_data`: 用于存储 Prometheus 数据的卷。
|
||||||
|
- `grafana_data`: 用于存储 Grafana 数据的卷。
|
||||||
|
|||||||
9
src/bifrost-gateway/config/grafana/datasources.yml
Normal file
9
src/bifrost-gateway/config/grafana/datasources.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
|
||||||
|
datasources:
|
||||||
|
- name: Prometheus
|
||||||
|
type: prometheus
|
||||||
|
url: http://prometheus:9090
|
||||||
|
isDefault: true
|
||||||
|
access: proxy
|
||||||
|
editable: true
|
||||||
8
src/bifrost-gateway/config/prometheus.yml
Normal file
8
src/bifrost-gateway/config/prometheus.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
global:
|
||||||
|
scrape_interval: 15s
|
||||||
|
|
||||||
|
scrape_configs:
|
||||||
|
- job_name: 'bifrost'
|
||||||
|
metrics_path: '/metrics'
|
||||||
|
static_configs:
|
||||||
|
- targets: ['bifrost:8080']
|
||||||
@@ -9,7 +9,7 @@ x-defaults: &defaults
|
|||||||
services:
|
services:
|
||||||
bifrost:
|
bifrost:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}maximhq/bifrost:${BIFROST_VERSION:-v1.3.48}
|
image: ${GLOBAL_REGISTRY:-}maximhq/bifrost:${BIFROST_VERSION:-v1.3.54}
|
||||||
volumes:
|
volumes:
|
||||||
- bifrost_data:/app/data
|
- bifrost_data:/app/data
|
||||||
ports:
|
ports:
|
||||||
@@ -31,5 +31,64 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 10s
|
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:
|
volumes:
|
||||||
bifrost_data:
|
bifrost_data:
|
||||||
|
prometheus_data:
|
||||||
|
grafana_data:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
TZ=UTC
|
TZ=UTC
|
||||||
|
|
||||||
# MongoDB Version
|
# MongoDB Version
|
||||||
MONGO_VERSION=8.0.13
|
MONGO_VERSION=8.2.3
|
||||||
|
|
||||||
# MongoDB root credentials
|
# MongoDB root credentials
|
||||||
MONGO_INITDB_ROOT_USERNAME=root
|
MONGO_INITDB_ROOT_USERNAME=root
|
||||||
|
|||||||
@@ -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:
|
1. Generate a key file for the replica set:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
mkdir -p ./secrets
|
||||||
openssl rand -base64 756 > ./secrets/rs0.key
|
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
|
## Configuration
|
||||||
|
|
||||||
- `TZ`: The timezone for the container, default is `UTC`.
|
- `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_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_ROOT_PASSWORD`: The root password for the database, default is `password`.
|
||||||
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.
|
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
1. 为副本集生成一个密钥文件:
|
1. 为副本集生成一个密钥文件:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
mkdir -p ./secrets
|
||||||
openssl rand -base64 756 > ./secrets/rs0.key
|
openssl rand -base64 756 > ./secrets/rs0.key
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
## 配置
|
## 配置
|
||||||
|
|
||||||
- `TZ`: 容器的时区,默认为 `UTC`。
|
- `TZ`: 容器的时区,默认为 `UTC`。
|
||||||
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.0.13`。
|
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.2.3`。
|
||||||
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
|
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
|
||||||
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
|
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
|
||||||
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。
|
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ x-defaults: &defaults
|
|||||||
|
|
||||||
x-mongo: &mongo
|
x-mongo: &mongo
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
|
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ:-UTC}
|
TZ: ${TZ:-UTC}
|
||||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
||||||
@@ -52,7 +52,7 @@ services:
|
|||||||
|
|
||||||
mongo-init:
|
mongo-init:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
|
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
mongo1:
|
mongo1:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# MongoDB Version
|
# MongoDB Version
|
||||||
MONGO_VERSION=8.0.13
|
MONGO_VERSION=8.2.3
|
||||||
|
|
||||||
# MongoDB root credentials
|
# MongoDB root credentials
|
||||||
MONGO_INITDB_ROOT_USERNAME=root
|
MONGO_INITDB_ROOT_USERNAME=root
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ This service sets up a MongoDB replica set with three members.
|
|||||||
1. Generate a key file for the replica set:
|
1. Generate a key file for the replica set:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
mkdir -p ./secrets
|
||||||
openssl rand -base64 756 > ./secrets/rs0.key
|
openssl rand -base64 756 > ./secrets/rs0.key
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ This service sets up a MongoDB replica set with three members.
|
|||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- `TZ`: The timezone for the container, default is `UTC`.
|
- `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_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_ROOT_PASSWORD`: The root password for the database, default is `password`.
|
||||||
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.
|
- `MONGO_INITDB_DATABASE`: The initial database to create, default is `admin`.
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
1. 为副本集生成一个密钥文件:
|
1. 为副本集生成一个密钥文件:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
mkdir -p ./secrets
|
||||||
openssl rand -base64 756 > ./secrets/rs0.key
|
openssl rand -base64 756 > ./secrets/rs0.key
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
## 配置
|
## 配置
|
||||||
|
|
||||||
- `TZ`: 容器的时区,默认为 `UTC`。
|
- `TZ`: 容器的时区,默认为 `UTC`。
|
||||||
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.0.13`。
|
- `MONGO_VERSION`: MongoDB 镜像的版本,默认为 `8.2.3`。
|
||||||
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
|
- `MONGO_INITDB_ROOT_USERNAME`: 数据库的 root 用户名,默认为 `root`。
|
||||||
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
|
- `MONGO_INITDB_ROOT_PASSWORD`: 数据库的 root 密码,默认为 `password`。
|
||||||
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。
|
- `MONGO_INITDB_DATABASE`: 要创建的初始数据库,默认为 `admin`。
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ x-defaults: &defaults
|
|||||||
|
|
||||||
x-mongo: &mongo
|
x-mongo: &mongo
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
|
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ:-UTC}
|
TZ: ${TZ:-UTC}
|
||||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
||||||
@@ -60,7 +60,7 @@ services:
|
|||||||
|
|
||||||
mongo-init:
|
mongo-init:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
|
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
depends_on:
|
depends_on:
|
||||||
mongo1:
|
mongo1:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# MongoDB Version
|
# MongoDB Version
|
||||||
MONGO_VERSION=8.0.13
|
MONGO_VERSION=8.2.3
|
||||||
|
|
||||||
# MongoDB root credentials
|
# MongoDB root credentials
|
||||||
MONGO_INITDB_ROOT_USERNAME=root
|
MONGO_INITDB_ROOT_USERNAME=root
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ MongoDB is a document database designed for ease of application development and
|
|||||||
|
|
||||||
| Variable | Description | Default |
|
| 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_USERNAME` | Root username | `root` |
|
||||||
| `MONGO_INITDB_ROOT_PASSWORD` | Root password | `password` |
|
| `MONGO_INITDB_ROOT_PASSWORD` | Root password | `password` |
|
||||||
| `MONGO_INITDB_DATABASE` | Initial database | `admin` |
|
| `MONGO_INITDB_DATABASE` | Initial database | `admin` |
|
||||||
|
|||||||
@@ -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_USERNAME` | 根用户名 | `root` |
|
||||||
| `MONGO_INITDB_ROOT_PASSWORD` | 根密码 | `password` |
|
| `MONGO_INITDB_ROOT_PASSWORD` | 根密码 | `password` |
|
||||||
| `MONGO_INITDB_DATABASE` | 初始数据库 | `admin` |
|
| `MONGO_INITDB_DATABASE` | 初始数据库 | `admin` |
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ x-defaults: &defaults
|
|||||||
services:
|
services:
|
||||||
mongo:
|
mongo:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.0.13}
|
image: ${GLOBAL_REGISTRY:-}mongo:${MONGO_VERSION:-8.2.3}
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ:-UTC}
|
TZ: ${TZ:-UTC}
|
||||||
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
MONGO_INITDB_ROOT_USERNAME: ${MONGO_INITDB_ROOT_USERNAME:-root}
|
||||||
|
|||||||
Reference in New Issue
Block a user