1
0

feat:调整cashbook

This commit is contained in:
okxlin
2024-09-01 21:38:34 +08:00
parent ba11ff50cb
commit afe482b6e4
12 changed files with 148 additions and 192 deletions

View File

@@ -1,3 +1,7 @@
CONTAINER_NAME="cashbook"
DATA_PATH="./data"
PANEL_APP_PORT_HTTP="40880"
DEFAULT_PASSWORD="cashbook"
ENVIRONMENT="PRO"
PANEL_APP_PORT_HTTP=40291
SERVER_KEY="08cc0348-061d-4193-af05-b6cc02df28ea"
TOKEN_SALT="spend-money-like-water"

View File

@@ -1,17 +1,47 @@
additionalProperties:
formFields:
- default: 40088
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: WebUI Port
labelZh: 网页端口
required: true
rule: paramPort
type: number
- default: ./data
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text
formFields:
- default: "40291"
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "./data"
edit: true
envKey: DATA_PATH
labelEn: Data storage folder
labelZh: 数据存放文件夹
required: true
type: text
- default: "spend-money-like-water"
edit: true
envKey: TOKEN_SALT
labelEn: Token Salt
labelZh: Token Salt
required: true
type: text
- default: "PRO"
edit: true
envKey: ENVIRONMENT
labelEn: Environment
labelZh: 环境
required: true
type: text
- default: "08cc0348-061d-4193-af05-b6cc02df28ea"
edit: true
envKey: SERVER_KEY
labelEn: Server Key
labelZh: 服务密钥
required: true
type: text
- default: "cashbook"
edit: true
envKey: DEFAULT_PASSWORD
labelEn: Default Password
labelZh: 默认密码
random: true
required: true
rule: paramComplexity
type: password

View File

@@ -1,5 +1,6 @@
services:
cashbook:
image: "dingdangdog/cashbook:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
@@ -7,11 +8,15 @@ services:
ports:
- "${PANEL_APP_PORT_HTTP}:80"
volumes:
- "${DATA_PATH}:/app/resources/app/data"
image: dingdangdog/cashbook:latest
- ${DATA_PATH}:/app/resources/data
environment:
- TOKEN_SALT=${TOKEN_SALT}
- ENVIRONMENT=${ENVIRONMENT}
- SERVER_KEY=${SERVER_KEY}
- DEFAULT_PASSWORD=${DEFAULT_PASSWORD}
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
external: true