1
0

Update app version [skip ci]

This commit is contained in:
github-action update-app-version
2024-12-12 17:05:02 +00:00
parent b9591cf637
commit dda381eb76
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
CONTAINER_NAME="trilium-cn"
PANEL_APP_PORT_HTTP="40173"
DATA_PATH="./data"

View File

@@ -0,0 +1,17 @@
additionalProperties:
formFields:
- default: 40173
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 folder path
labelZh: 数据文件夹路径
required: true
type: text

View File

@@ -0,0 +1,25 @@
services:
trilium-cn:
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
ports:
- "${PANEL_APP_PORT_HTTP}:8080"
volumes:
- "${DATA_PATH}:/root/trilium-data"
environment:
- TRILIUM_DATA_DIR=/root/trilium-data
# 可选功能: 健康检查。需要启用的话,把下面的注释去掉
#healthcheck:
# test: ["CMD-SHELL", "curl --fail http://localhost:8080/api/health-check | jq -e '.status == "ok"' || exit 1"]
# interval: 30s
# timeout: 10s
# retries: 3
image: nriver/trilium-cn:0.63.7
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true