mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2025-02-18 08:00:30 +08:00
feat: One API 默认选择 MySQL 数据库
This commit is contained in:
parent
f0db568b22
commit
8df50b6060
@ -1,5 +1,36 @@
|
|||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
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
|
- default: 3000
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
@ -15,10 +46,3 @@ additionalProperties:
|
|||||||
labelZh: 时区
|
labelZh: 时区
|
||||||
required: true
|
required: true
|
||||||
type: text
|
type: text
|
||||||
- default: ''
|
|
||||||
edit: true
|
|
||||||
envKey: SQL_DSN
|
|
||||||
labelEn: SQL_DSN
|
|
||||||
labelZh: SQL_DSN
|
|
||||||
required: false
|
|
||||||
type: text
|
|
@ -11,8 +11,13 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
environment:
|
environment:
|
||||||
|
- SQL_DSN=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:3306)/${PANEL_DB_NAME} # 修改此行,或注释掉以使用 SQLite 作为数据库
|
||||||
- TZ=${TZ}
|
- 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:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user