mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Umami version upgraded to v2.13.2 (#2006)
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: mysql
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelEn: Database Service
|
||||
labelZh: 数据库服务
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- default: umami
|
||||
envKey: PANEL_DB_NAME
|
||||
labelEn: Database
|
||||
labelZh: 数据库名
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: umami
|
||||
envKey: PANEL_DB_USER
|
||||
labelEn: User
|
||||
labelZh: 数据库用户
|
||||
random: true
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: umami
|
||||
envKey: PANEL_DB_USER_PASSWORD
|
||||
labelEn: Password
|
||||
labelZh: 数据库用户密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: 3000
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelEn: Port
|
||||
labelZh: HTTP 端口
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: umami
|
||||
edit: true
|
||||
envKey: HASH_SALT
|
||||
labelEn: Hash Salt
|
||||
labelZh: 哈希盐 (随机字符串)
|
||||
random: true
|
||||
required: true
|
||||
type: text
|
||||
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:${PANEL_DB_TYPE}-v2.13.2
|
||||
container_name: ${CONTAINER_NAME}
|
||||
restart: always
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3000
|
||||
environment:
|
||||
DATABASE_TYPE: ${PANEL_DB_TYPE}
|
||||
DATABASE_URL: ${PANEL_DB_TYPE}://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
||||
APP_SECRET: ${HASH_SALT}
|
||||
networks:
|
||||
- 1panel-network
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ -f ./.env ]]; then
|
||||
if grep -q "PANEL_DB_TYPE" ./.env; then
|
||||
echo "PANEL_DB_TYPE 已存在"
|
||||
else
|
||||
echo 'PANEL_DB_TYPE="mysql"' >> ./.env
|
||||
fi
|
||||
else
|
||||
echo ".env 文件不存在"
|
||||
fi
|
||||
Reference in New Issue
Block a user