feat:添加chatnio到列表
This commit is contained in:
14
apps/chatnio/latest/.env.sample
Normal file
14
apps/chatnio/latest/.env.sample
Normal file
@@ -0,0 +1,14 @@
|
||||
CONTAINER_NAME="chatnio"
|
||||
PANEL_APP_PORT_HTTP="40249"
|
||||
PANEL_DB_HOST="mysql"
|
||||
PANEL_DB_HOST_NAME="mysql"
|
||||
PANEL_DB_NAME="chatnio_37rnt4"
|
||||
PANEL_DB_PORT="3306"
|
||||
PANEL_DB_TYPE="mysql"
|
||||
PANEL_DB_USER="chatnio_67Hwxm"
|
||||
PANEL_DB_USER_PASSWORD="chatnio_JpWrKG"
|
||||
PANEL_REDIS_ROOT_PASSWORD="redis_password"
|
||||
REDIS_DB="5"
|
||||
REDIS_HOST="redis"
|
||||
REDIS_PORT="6379"
|
||||
SERVE_STATIC="true"
|
||||
92
apps/chatnio/latest/data.yml
Normal file
92
apps/chatnio/latest/data.yml
Normal file
@@ -0,0 +1,92 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: 40249
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: mysql
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: LocalMySQL
|
||||
value: localmysql
|
||||
child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: service
|
||||
- default: chatnio
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: chatnio
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: chatnio
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: REDIS_HOST
|
||||
key: redis
|
||||
labelEn: Redis Service
|
||||
labelZh: Redis服务
|
||||
required: true
|
||||
type: service
|
||||
- default: "6379"
|
||||
edit: true
|
||||
envKey: REDIS_PORT
|
||||
labelEn: Redis Service Port
|
||||
labelZh: Redis服务端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
envKey: PANEL_REDIS_ROOT_PASSWORD
|
||||
labelEn: Redis Password
|
||||
labelZh: Redis 密码
|
||||
required: true
|
||||
type: password
|
||||
- default: "5"
|
||||
envKey: REDIS_DB
|
||||
labelEn: Redis Database
|
||||
labelZh: Redis 数据库
|
||||
required: true
|
||||
type: number
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: SERVE_STATIC
|
||||
labelEn: Serve Static
|
||||
labelZh: 是否启用静态文件服务
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: "true"
|
||||
value: "true"
|
||||
- label: "false"
|
||||
value: "false"
|
||||
34
apps/chatnio/latest/docker-compose.yml
Normal file
34
apps/chatnio/latest/docker-compose.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: '3'
|
||||
services:
|
||||
chatnio:
|
||||
image: programzmh/chatnio:latest
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
ports:
|
||||
- "${PANEL_APP_PORT_HTTP}:8094"
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 65535
|
||||
hard: 65535
|
||||
environment:
|
||||
MYSQL_HOST: "${PANEL_DB_HOST}"
|
||||
MYSQL_USER: "${PANEL_DB_USER}"
|
||||
MYSQL_PASSWORD: "${PANEL_DB_USER_PASSWORD}"
|
||||
MYSQL_DB: "${PANEL_DB_NAME}"
|
||||
REDIS_HOST: "${REDIS_HOST}"
|
||||
REDIS_PORT: "${REDIS_PORT}"
|
||||
REDIS_PASSWORD: "${PANEL_REDIS_ROOT_PASSWORD}"
|
||||
REDIS_DB: "${REDIS_DB}"
|
||||
SERVE_STATIC: "${SERVE_STATIC}"
|
||||
volumes:
|
||||
- ./data/config:/config
|
||||
- ./data/logs:/logs
|
||||
- ./data/storage:/storage
|
||||
networks:
|
||||
- 1panel-network
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
Reference in New Issue
Block a user