update nocobase

This commit is contained in:
2026-08-13 19:45:19 +08:00
parent 7c841f3396
commit bce49f4560
2 changed files with 25 additions and 19 deletions

View File

@@ -1,6 +1,15 @@
# NocoBase配置
下载:`wget https://git.ossdate.com/fivemoons/oss-scripts/raw/branch/main/nocobase/docker-compose.yml`
离线镜像下载https://pan.quark.cn/s/037bf2962eba
加载离线镜像:
```yaml
docker load -i nocobase-2.1.36-full.tar.gz
docker load -i postgres-16.tar.gz
```
下载脚本:`wget https://git.ossdate.com/fivemoons/oss-scripts/raw/branch/main/nocobase/docker-compose.yml`
启动:`docker compose up -d`

View File

@@ -4,32 +4,29 @@ networks:
services:
app:
# Latest为稳定版Beta为测试版Alpha为开发版
image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full
image: nocobase/nocobase:2.1.39-full
restart: always
networks:
- nocobase
depends_on:
- mariadb
- postgres
environment:
# 应用的密钥,用于生成用户 token 等
# 如果 APP_KEY 修改了,旧的 token 也会随之失效
# 可以是任意随机字符串,并确保不对外泄露
- APP_KEY=your-secret-key
- APP_KEY=12708ae3e98ad9d18cb80f84026f9619670511cfd2aa0a620affb566ac996f57 # 使用openssl rand -hex 32命令生成并将结果复制填入
# 数据库类型,支持 postgres, mysql, mariadb
- DB_DIALECT=mariadb
- DB_DIALECT=postgres
# 数据库主机,可以替换为已有的数据库服务器 IP
- DB_HOST=mariadb
- DB_HOST=postgres
# Database port
- DB_PORT=3306
- DB_PORT=5432
# 数据库名
- DB_DATABASE=nocobase
# 数据库用户
- DB_USER=root
- DB_USER=nocobase
# 数据库密码
- DB_PASSWORD=ggo4fnk1748e
# 数据库表名、字段名是否转为 snake case 风格
- DB_UNDERSCORED=true
- DB_PASSWORD=5mfgohe8po1r4z # 修改数据库密码
# 时区
- TZ=Asia/Shanghai
volumes:
@@ -40,14 +37,14 @@ services:
# 如果使用已有数据库服务,可以不启动 mariadb
mariadb:
image: registry.cn-shanghai.aliyuncs.com/nocobase/mariadb:11
environment:
MYSQL_DATABASE: nocobase
MYSQL_USER: nocobase
MYSQL_PASSWORD: m3d1c6eea8uw
MYSQL_ROOT_PASSWORD: ggo4fnk1748e
image: postgres:16
restart: always
command: postgres -c wal_level=logical
environment:
POSTGRES_USER: nocobase
POSTGRES_DB: nocobase
POSTGRES_PASSWORD: 5mfgohe8po1r4z # 修改数据库密码
volumes:
- ./storage/db/mariadb:/var/lib/mysql
- ./storage/db/postgres:/var/lib/postgresql/data
networks:
- nocobase