feat: update flyiii Version (#2341)

This commit is contained in:
zhengkunwang
2024-10-22 16:36:02 +08:00
committed by GitHub
parent c671845579
commit f4d98ecabd
4 changed files with 1 additions and 1 deletions
+55
View File
@@ -0,0 +1,55 @@
additionalProperties:
formFields:
- default: ""
envKey: APP_KEY
labelEn: Application Key (Must be exactly 32 characters)
labelZh: 应用密钥 (必须为 32 位字符)
required: true
type: text
- default: mysql
envKey: PANEL_DB_TYPE
labelEn: Database Service
labelZh: 数据库服务
required: true
type: apps
child:
default: ""
envKey: PANEL_DB_HOST
required: true
type: service
values:
- label: MySQL
value: mysql
- label: PostgreSQL
value: postgres
- default: firefly
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名称
random: true
required: true
rule: paramCommon
type: text
- default: firefly
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: firefly
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: HTTP 端口
required: true
rule: paramPort
type: number
@@ -0,0 +1,24 @@
services:
firefly-iii:
image: fireflyiii/core:version-6.1.21
container_name: ${CONTAINER_NAME}
environment:
- APP_KEY=${APP_KEY}
- DB_CONNECTION=${PANEL_DB_TYPE}
- DB_HOST=${PANEL_DB_HOST}
- DB_PORT=${PANEL_DB_PORT}
- DB_DATABASE=${PANEL_DB_NAME}
- DB_USERNAME=${PANEL_DB_USER}
- DB_PASSWORD=${PANEL_DB_USER_PASSWORD}
restart: always
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:8080
volumes:
- ./firefly-iii/upload:/var/www/html/storage/upload
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
if [[ -f ./.env ]]; then
if grep -q 'PANEL_DB_TYPE="mysql"' ./.env; then
echo "PANEL_DB_TYPE 为 Mysql 数据库, 不作修改"
else
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_TYPE="pgsql"/g' ./.env
fi
else
echo ".env 文件不存在"
fi
@@ -0,0 +1,11 @@
#!/bin/bash
if [[ -f ./.env ]]; then
if grep -q 'PANEL_DB_TYPE="mysql"' ./.env; then
echo "PANEL_DB_TYPE 为 Mysql 数据库, 不作修改"
else
sed -i 's/PANEL_DB_TYPE="postgres"/PANEL_DB_TYPE="pgsql"/g' ./.env
fi
else
echo ".env 文件不存在"
fi