1
0

feat:修正icat_lite

This commit is contained in:
okxlin
2024-06-30 23:35:27 +08:00
parent 551363464c
commit 4ca55e291e
9 changed files with 193 additions and 101 deletions

View File

@@ -0,0 +1,10 @@
CONTAINER_NAME="icat_lite"
ICAT_COOKIEPWD="fibowrlnidazotocrichechotechovad"
ICAT_PWDKEY="nevovltregopezeminatisejlbojudos"
PANEL_APP_PORT_HTTP=8095
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="icat_lite"
PANEL_DB_PORT=5432
PANEL_DB_USER="icat_lite"
PANEL_DB_USER_PASSWORD="icat_bbs"

View File

@@ -0,0 +1,65 @@
additionalProperties:
formFields:
- default: ""
edit: true
envKey: PANEL_DB_HOST
key: postgresql
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: 5432
envKey: PANEL_DB_PORT
labelEn: Database port
labelZh: 数据库端口
random: false
required: true
rule: paramPort
type: number
- default: icat_lite
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: icat_lite
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: "icat_bbs"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 8095
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "nevovltregopezeminatisejlbojudos"
edit: true
envKey: ICAT_PWDKEY
labelEn: Key for encrypted password (lost and can't log in)
labelZh: 用于加密的密码的密钥 (丢失无法登录)
random: true
required: true
type: text
- default: "fibowrlnidazotocrichechotechovad"
edit: true
envKey: ICAT_COOKIEPWD
labelEn: CookiePassword (at least 32 bits)
labelZh: 登录状态加密密码 (至少32位)
required: false
type: text

View File

@@ -0,0 +1,21 @@
services:
icat_lite:
image: "bluesdo/icat_lite_public:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- ./icat_lite/data:/icat_lite/www/data
- ./icat_lite/system:/icat_lite/www/public/statics/system
- ./icat_lite/systemBlock:/icat_lite/www/public/statics/systemBlock
- ./icat_lite/sticker:/icat_lite/www/public/statics/sticker
- ./icat_lite/certs:/icat_lite/certs
ports:
- ${PANEL_APP_PORT_HTTP}:8095
command: "serve.js --host 0.0.0.0 --port 8095 --dbHost ${PANEL_DB_HOST} --dbPort ${PANEL_DB_PORT} --dbName ${PANEL_DB_NAME} --dbUser ${PANEL_DB_USER} --dbPassword ${PANEL_DB_USER_PASSWORD} --pwdKey ${ICAT_PWDKEY} --cookiePwd ${ICAT_COOKIEPWD} --alterAll"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true