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,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: