mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 21:16:55 +08:00
feat: One API 默认选择 MySQL 数据库
This commit is contained in:
parent
f0db568b22
commit
8df50b6060
@ -1,5 +1,36 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
key: mysql
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
- default: oneapi
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: oneapi
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: oneapi
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 3000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
@ -14,11 +45,4 @@ additionalProperties:
|
||||
labelEn: Time Zone
|
||||
labelZh: 时区
|
||||
required: true
|
||||
type: text
|
||||
- default: ''
|
||||
edit: true
|
||||
envKey: SQL_DSN
|
||||
labelEn: SQL_DSN
|
||||
labelZh: SQL_DSN
|
||||
required: false
|
||||
type: text
|
@ -11,8 +11,13 @@ services:
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
- SQL_DSN=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:3306)/${PANEL_DB_NAME} # 修改此行,或注释掉以使用 SQLite 作为数据库
|
||||
- TZ=${TZ}
|
||||
- SQL_DSN=${SQL_DSN}
|
||||
# - REDIS_CONN_STRING=redis://redis
|
||||
# - SESSION_SECRET=random_string # 修改为随机字符串
|
||||
# - NODE_TYPE=slave # 多机部署时从节点取消注释该行
|
||||
# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行
|
||||
# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
networks:
|
||||
|
Loading…
Reference in New Issue
Block a user