feat:调整tianji细节
This commit is contained in:
parent
73592c6000
commit
fde45a0fb2
|
|
@ -0,0 +1,11 @@
|
||||||
|
CONTAINER_NAME="tianji"
|
||||||
|
PANEL_APP_PORT_HTTP="40205"
|
||||||
|
ALLOW_OPENAPI="true"
|
||||||
|
ALLOW_REGISTER="false"
|
||||||
|
JWT_SECRET="any-random-text_fZpxzA"
|
||||||
|
PANEL_DB_HOST="postgresql"
|
||||||
|
PANEL_DB_HOST_NAME="postgresql"
|
||||||
|
PANEL_DB_NAME="tianji_5pz3w2"
|
||||||
|
PANEL_DB_PORT="5432"
|
||||||
|
PANEL_DB_USER="tianji_XA6H4c"
|
||||||
|
PANEL_DB_USER_PASSWORD="tianji_4X2sNe"
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: 12345
|
- default: 40205
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelEn: Web Port
|
labelEn: Port
|
||||||
labelZh: Web 端口
|
labelZh: 端口
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: ""
|
- default: ""
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_DB_HOST
|
envKey: PANEL_DB_HOST
|
||||||
key: postgres
|
key: postgresql
|
||||||
labelEn: Database Service
|
labelEn: Database Service
|
||||||
labelZh: 数据库服务
|
labelZh: 数据库服务
|
||||||
required: true
|
required: true
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
tianji:
|
tianji:
|
||||||
container_name: ${CONTAINER_NAME}
|
container_name: ${CONTAINER_NAME}
|
||||||
restart: unless-stopped
|
restart: always
|
||||||
image: moonrailgun/tianji:1.7.3
|
image: moonrailgun/tianji:1.7.3
|
||||||
networks:
|
networks:
|
||||||
- 1panel-network
|
- 1panel-network
|
||||||
|
|
|
||||||
|
|
@ -1,19 +1,20 @@
|
||||||
name: Tianji
|
name: Tianji
|
||||||
tags:
|
tags:
|
||||||
- 实用工具
|
- 工具
|
||||||
title: Tianji 是一款开源的 all-in-one 数据洞察中心。Tianji = Website Analytics + Uptime Monitor + Server Status
|
title: Tianji 是一款开源的 all-in-one 数据洞察中心
|
||||||
type: 实用工具
|
type: 工具
|
||||||
description: Tianji 是一款开源的 all-in-one 数据洞察中心
|
description: Tianji 是一款开源的 all-in-one 数据洞察中心
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
key: tianji
|
key: tianji
|
||||||
name: Tianji
|
name: Tianji
|
||||||
tags:
|
tags:
|
||||||
- Tool
|
- Tool
|
||||||
shortDescZh: Tianji 是一款开源的 all-in-one 数据洞察中心
|
shortDescZh: Tianji 是一款开源的 all-in-one 数据洞察中心
|
||||||
shortDescEn: All-in-One Insight Hub
|
shortDescEn: Tianji = Website Analytics + Uptime Monitor + Server Status
|
||||||
type: tool
|
type: tool
|
||||||
crossVersionUpdate: true
|
crossVersionUpdate: true
|
||||||
limit: 0
|
limit: 0
|
||||||
website: https://tianji.msgbyte.com/
|
recommend: 0
|
||||||
github: https://github.com/msgbyte/tianji
|
website: https://tianji.msgbyte.com/
|
||||||
document: https://tianji.msgbyte.com/
|
github: https://github.com/msgbyte/tianji
|
||||||
|
document: https://github.com/msgbyte/tianji
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
CONTAINER_NAME="tianji"
|
||||||
|
PANEL_APP_PORT_HTTP="40205"
|
||||||
|
ALLOW_OPENAPI="true"
|
||||||
|
ALLOW_REGISTER="false"
|
||||||
|
JWT_SECRET="any-random-text_fZpxzA"
|
||||||
|
PANEL_DB_HOST="postgresql"
|
||||||
|
PANEL_DB_HOST_NAME="postgresql"
|
||||||
|
PANEL_DB_NAME="tianji_5pz3w2"
|
||||||
|
PANEL_DB_PORT="5432"
|
||||||
|
PANEL_DB_USER="tianji_XA6H4c"
|
||||||
|
PANEL_DB_USER_PASSWORD="tianji_4X2sNe"
|
||||||
|
|
@ -0,0 +1,73 @@
|
||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: 40205
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
|
labelEn: Port
|
||||||
|
labelZh: 端口
|
||||||
|
required: true
|
||||||
|
rule: paramPort
|
||||||
|
type: number
|
||||||
|
- default: ""
|
||||||
|
edit: true
|
||||||
|
envKey: PANEL_DB_HOST
|
||||||
|
key: postgresql
|
||||||
|
labelEn: Database Service
|
||||||
|
labelZh: 数据库服务
|
||||||
|
required: true
|
||||||
|
type: service
|
||||||
|
- default: tianji
|
||||||
|
envKey: PANEL_DB_NAME
|
||||||
|
labelEn: Database Name
|
||||||
|
labelZh: 数据库名
|
||||||
|
random: true
|
||||||
|
required: true
|
||||||
|
rule: paramCommon
|
||||||
|
type: text
|
||||||
|
- default: tianji
|
||||||
|
envKey: PANEL_DB_USER
|
||||||
|
labelEn: Database User
|
||||||
|
labelZh: 数据库用户
|
||||||
|
random: true
|
||||||
|
required: true
|
||||||
|
rule: paramCommon
|
||||||
|
type: text
|
||||||
|
- default: tianji
|
||||||
|
envKey: PANEL_DB_USER_PASSWORD
|
||||||
|
labelEn: Database Password
|
||||||
|
labelZh: 数据库用户密码
|
||||||
|
random: true
|
||||||
|
required: true
|
||||||
|
rule: paramComplexity
|
||||||
|
type: password
|
||||||
|
- default: any-random-text
|
||||||
|
edit: true
|
||||||
|
envKey: JWT_SECRET
|
||||||
|
labelEn: Secret
|
||||||
|
labelZh: 秘钥
|
||||||
|
random: true
|
||||||
|
required: true
|
||||||
|
rule: paramComplexity
|
||||||
|
type: text
|
||||||
|
- default: "true"
|
||||||
|
envKey: ALLOW_OPENAPI
|
||||||
|
labelEn: Allow OpenAPI
|
||||||
|
labelZh: 是否开启OpenAPI
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: "True"
|
||||||
|
value: "true"
|
||||||
|
- label: "False"
|
||||||
|
value: "false"
|
||||||
|
- default: "false"
|
||||||
|
envKey: ALLOW_REGISTER
|
||||||
|
labelEn: Allow Register
|
||||||
|
labelZh: 是否允许注册
|
||||||
|
required: true
|
||||||
|
type: select
|
||||||
|
values:
|
||||||
|
- label: "True"
|
||||||
|
value: "true"
|
||||||
|
- label: "False"
|
||||||
|
value: "false"
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
tianji:
|
||||||
|
container_name: ${CONTAINER_NAME}
|
||||||
|
restart: always
|
||||||
|
image: moonrailgun/tianji:latest
|
||||||
|
networks:
|
||||||
|
- 1panel-network
|
||||||
|
ports:
|
||||||
|
- ${PANEL_APP_PORT_HTTP}:12345
|
||||||
|
environment:
|
||||||
|
- DATABASE_URL=postgresql://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME}
|
||||||
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
|
- ALLOW_REGISTER=${ALLOW_REGISTER}
|
||||||
|
- ALLOW_OPENAPI=${ALLOW_OPENAPI}
|
||||||
|
labels:
|
||||||
|
createdBy: "Apps"
|
||||||
|
networks:
|
||||||
|
1panel-network:
|
||||||
|
external: true
|
||||||
Loading…
Reference in New Issue