mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-19 03:17:11 +08:00
feat: update newapi v0.9.0.3.2
This commit is contained in:
@@ -1,20 +0,0 @@
|
|||||||
services:
|
|
||||||
new-api:
|
|
||||||
image: calciumion/new-api:v0.9.0-alpha.16
|
|
||||||
container_name: ${CONTAINER_NAME}
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- ${PANEL_APP_PORT_HTTP}:3000
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
command: --log-dir /app/logs
|
|
||||||
volumes:
|
|
||||||
- ./data:/data
|
|
||||||
- ./logs:/app/logs
|
|
||||||
environment:
|
|
||||||
- TZ=${TZ}
|
|
||||||
labels:
|
|
||||||
createdBy: Apps
|
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: newapi
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_DB_NAME
|
|
||||||
labelEn: Database
|
|
||||||
labelZh: 数据库名
|
|
||||||
random: true
|
|
||||||
required: true
|
|
||||||
rule: paramCommon
|
|
||||||
type: text
|
|
||||||
- default: newapi
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_DB_ROOT_PASSWORD
|
|
||||||
labelEn: Password
|
|
||||||
labelZh: 数据库密码
|
|
||||||
random: true
|
|
||||||
required: true
|
|
||||||
rule: paramComplexity
|
|
||||||
type: password
|
|
||||||
- default: 3000
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelEn: Port
|
|
||||||
labelZh: 端口
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
services:
|
|
||||||
new-api:
|
|
||||||
image: calciumion/new-api:v0.9.0-alpha.5
|
|
||||||
container_name: ${CONTAINER_NAME}
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- ${PANEL_APP_PORT_HTTP}:3000
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
command: --log-dir /app/logs
|
|
||||||
volumes:
|
|
||||||
- ./data:/data
|
|
||||||
- ./logs:/app/logs
|
|
||||||
environment:
|
|
||||||
- SQL_DSN=root:${PANEL_DB_ROOT_PASSWORD}@tcp(${CONTAINER_NAME}-mysql:3306)/${PANEL_DB_NAME} # 修改此行,或注释掉以使用 SQLite 作为数据库
|
|
||||||
- TZ=Asia/Shanghai
|
|
||||||
- REDIS_CONN_STRING=redis://${CONTAINER_NAME}-redis
|
|
||||||
- ERROR_LOG_ENABLED=true # 是否启用错误日志记录
|
|
||||||
# - STREAMING_TIMEOUT=120 # 流模式无响应超时时间,单位秒,默认120秒,如果出现空补全可以尝试改为更大值
|
|
||||||
# - SESSION_SECRET=random_string # 多机部署时设置,必须修改这个随机字符串!!!!!!!
|
|
||||||
# - NODE_TYPE=slave # Uncomment for slave node in multi-node deployment
|
|
||||||
# - SYNC_FREQUENCY=60 # Uncomment if regular database syncing is needed
|
|
||||||
# - FRONTEND_BASE_URL=https://openai.justsong.cn # Uncomment for multi-node deployment with front-end URL
|
|
||||||
depends_on:
|
|
||||||
- redis
|
|
||||||
- mysql
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "wget -q -O - http://localhost:3000/api/status | grep -o '\"success\":\\s*true' | awk -F: '{print $$2}'"]
|
|
||||||
interval: 30s
|
|
||||||
timeout: 10s
|
|
||||||
retries: 3
|
|
||||||
labels:
|
|
||||||
createdBy: "Apps"
|
|
||||||
|
|
||||||
mysql:
|
|
||||||
image: mysql:8.2
|
|
||||||
container_name: ${CONTAINER_NAME}-mysql
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- mysql_data:/var/lib/mysql
|
|
||||||
environment:
|
|
||||||
- MYSQL_ROOT_PASSWORD=${PANEL_DB_ROOT_PASSWORD} # MySQL root用户密码
|
|
||||||
- MYSQL_DATABASE=${PANEL_DB_NAME} # 创建的数据库名
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
|
|
||||||
redis:
|
|
||||||
image: redis:latest
|
|
||||||
container_name: ${CONTAINER_NAME}-redis
|
|
||||||
restart: always
|
|
||||||
networks:
|
|
||||||
- 1panel-network
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
mysql_data:
|
|
||||||
|
|
||||||
networks:
|
|
||||||
1panel-network:
|
|
||||||
external: true
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
additionalProperties:
|
|
||||||
formFields:
|
|
||||||
- default: 3000
|
|
||||||
edit: true
|
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
|
||||||
labelEn: Port
|
|
||||||
labelZh: 端口
|
|
||||||
required: true
|
|
||||||
rule: paramPort
|
|
||||||
type: number
|
|
||||||
- default: Asia/Shanghai
|
|
||||||
edit: true
|
|
||||||
envKey: TZ
|
|
||||||
labelEn: Time Zone
|
|
||||||
labelZh: 时区
|
|
||||||
required: true
|
|
||||||
type: text
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
new-api:
|
new-api:
|
||||||
image: calciumion/new-api:v0.8.7.5
|
image: calciumion/new-api:v0.9.0.3.2
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
new-api:
|
new-api:
|
||||||
image: calciumion/new-api:v0.9.0-alpha.5
|
image: calciumion/new-api:v0.9.0.3.2
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
Reference in New Issue
Block a user