Added Tianji

This commit is contained in:
2026-01-19 19:55:06 +01:00
parent 3603d9e808
commit 8a563e2018
4 changed files with 181 additions and 0 deletions

127
cpn-tianji/app.json Normal file
View File

@@ -0,0 +1,127 @@
{
"spec_version": "1.0",
"metadata": {
"id": "tianji",
"name": "Tianji",
"description": "During our observations of the website. We often need to use multiple applications together. For example, we need analysis tools such as GA/umami to check pv/uv and the number of visits to each page, we need an uptime monitor to check the network quality and connectivity of the server, and we need to use prometheus to obtain the status reported by the server to check the quality of the server. In addition, if we develop an application that allows open source deployment, we often need a telemetry system to help us collect the simplest information about other people's deployment situations. I think these tools should serve the same purpose, so is there an application that can integrate these common needs in a lightweight way? After all, most of the time we don't need very professional and in-depth functions. But in order to achieve comprehensive monitoring, I need to install so many services. It's good to specialize in one thing, if we are experts in related abilities we need such specialized tools. But for most users who only have lightweight needs, an All-in-One application will be more convenient and easier to use.",
"tagline": "Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives",
"version": "1.31.8",
"author": "Weektab",
"developer": "moonrailgun",
"category": "networking",
"license": "",
"homepage": "https://hub.docker.com/r/moonrailgun/tianji",
"source": "Weektab",
"created": "2025-10-27T02:42:20Z",
"updated": "2026-01-19T17:00:00.211Z"
},
"visual": {
"icon": "https://git.weektab.org/companas/umbrel-apps/raw/branch/main/gallery/tianji/icon.png",
"thumbnail": "",
"screenshots": "https://git.weektab.org/companas/umbrel-apps/raw/branch/main/gallery/tianji/image-1.jpg",
"logo": "https://git.weektab.org/companas/umbrel-apps/raw/branch/main/gallery/tianji/icon.png"
},
"resources": {
"youtube": "",
"documentation": "",
"repository": "",
"issues": "",
"support": "https://git.weektab.org/companas/umbrel-apps/issues"
},
"technical": {
"architectures": [
"amd64",
"arm64"
],
"platform": "linux",
"main_service": "cpn-tianji",
"default_port": "12345",
"main_image": "moonrailgun/tianji",
"compose_file": "docker-compose.yml"
},
"deployment": {
"environment_variables": [],
"volumes": [
{
"container": "/app/data/configs",
"description": "Container Path: /app/data/configs"
},
{
"container": "/app/public/icons",
"description": "Container Path: /app/public/icons"
},
{
"container": "/data",
"description": "Container Path: /data"
}
],
"ports": [
{
"container": "7575",
"host": "7575",
"protocol": "tcp",
"description": "Container Port: 7575"
}
]
},
"ui": {
"scheme": "http",
"path": "",
"tips": {}
},
"compatibility": {
"casaos": {
"supported": true,
"port_map": "12345",
"volume_mappings": {
"tianji_pgdata": "/DATA/AppData/$AppID/pgdata"
},
"port": "12345"
},
"portainer": {
"supported": true,
"template_type": 2,
"categories": [
"networking"
],
"administrator_only": false,
"port": "12345"
},
"runtipi": {
"supported": true,
"tipi_version": 1,
"supported_architectures": [
"amd64",
"arm64"
],
"volume_mappings": {
"tianji_pgdata": "pgdata"
},
"port": "12345"
},
"dockge": {
"supported": true,
"file_based": true,
"port": "12345"
},
"cosmos": {
"supported": true,
"servapp": true,
"routes_required": true,
"port": "12345"
},
"umbrel": {
"supported": true,
"manifest_version": 1,
"volume_mappings": {
"tianji_pgdata": "pgdata"
},
"port": "12345"
}
},
"tags": [
"selfhosted",
"docker",
"container"
]
}

View File

@@ -0,0 +1,54 @@
# Configuration for tianji setup
# Name of the cpn-tianji application
name: cpn-tianji
# Service definitions for the cpn-tianji application
services:
# Service name: cpn-tianji
# The `cpn-tianji` service definition
cpn-tianji:
# Name of the container
container_name: cpn-tianji
# Image to be used for the container
image: moonrailgun/tianji:1.31.8
# Container restart policy
restart: unless-stopped
# Environment variables for the container
environment:
DATABASE_URL: postgresql://tianji-user:227453b7-1286-48cc-b471-1c269495c5fc@cpn-tianji-db:5432/tianji
JWT_SECRET: replace-me-with-a-random-string
ALLOW_REGISTER: "false"
ALLOW_OPENAPI: "true"
# Ports mapping between host and container
ports:
# Mapping port 12345 of the host to port 12345 of the container
- "12345:12345"
networks:
- cpn_tianji_network
depends_on:
- cpn-tianji-db
# Postgres database
cpn-tianji-db:
container_name: cpn-tianji-db
image: postgres:15.4-alpine
environment:
POSTGRES_DB: tianji
POSTGRES_USER: tianji-user
POSTGRES_PASSWORD: 227453b7-1286-48cc-b471-1c269495c5fc
volumes:
- tianji_pgdata:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
networks:
- cpn_tianji_network
networks:
cpn_tianji_network:
driver: bridge
volumes:
tianji_pgdata:
name: tianji_pgdata
driver: local

BIN
gallery/tianji/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
gallery/tianji/image-1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB