Updated Tianji
This commit is contained in:
@@ -1,56 +1,40 @@
|
|||||||
version: "3.8"
|
name: cpn-tianji
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cpn-tianji:
|
cpn-tianji:
|
||||||
image: moonrailgun/tianji:1.31.8@sha256:86b58556fa9ff5454cb4eeddc2330124244733820a56b5491c8c0e4399880c68
|
|
||||||
container_name: cpn-tianji
|
container_name: cpn-tianji
|
||||||
hostname: cpn-tianji
|
image: moonrailgun/tianji:1.31.8@sha256:86b58556fa9ff5454cb4eeddc2330124244733820a56b5491c8c0e4399880c68
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_grace_period: 1m
|
|
||||||
ports:
|
|
||||||
- ${APP_TIANJI_PORT:-12345}:12345
|
|
||||||
environment:
|
environment:
|
||||||
DATABASE_URL: postgresql://tianji-user:${APP_PASSWORD}@cpn-tianji-db:5432/tianji
|
DATABASE_URL: postgresql://tianji-user:227453b7-1286-48cc-b471-1c269495c5fc@cpn-tianji-db:5432/tianji
|
||||||
JWT_SECRET: ${APP_SEED}
|
JWT_SECRET: replace-me-with-a-random-string
|
||||||
ALLOW_REGISTER: "false"
|
ALLOW_REGISTER: "false"
|
||||||
ALLOW_OPENAPI: "true"
|
ALLOW_OPENAPI: "true"
|
||||||
PUBLIC_URL: "http://${DEVICE_DOMAIN_NAME}:${APP_TIANJI_PORT:-12345}"
|
ports:
|
||||||
volumes:
|
- "12345:12345"
|
||||||
- ${APP_DATA_DIR}/data/configs:/app/data/configs
|
|
||||||
- ${APP_DATA_DIR}/data/icons:/app/public/icons
|
|
||||||
- ${APP_DATA_DIR}/data:/data
|
|
||||||
depends_on:
|
|
||||||
cpn-tianji-db:
|
|
||||||
condition: service_healthy
|
|
||||||
networks:
|
networks:
|
||||||
- cpn_tianji_network
|
- cpn_tianji_network
|
||||||
|
depends_on:
|
||||||
|
- cpn-tianji-db
|
||||||
cpn-tianji-db:
|
cpn-tianji-db:
|
||||||
image: postgres:15.4-alpine
|
|
||||||
container_name: cpn-tianji-db
|
container_name: cpn-tianji-db
|
||||||
hostname: cpn-tianji-db
|
image: postgres:15.4-alpine
|
||||||
restart: unless-stopped
|
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: tianji
|
POSTGRES_DB: tianji
|
||||||
POSTGRES_USER: tianji-user
|
POSTGRES_USER: tianji-user
|
||||||
POSTGRES_PASSWORD: ${APP_PASSWORD}
|
POSTGRES_PASSWORD: 227453b7-1286-48cc-b471-1c269495c5fc
|
||||||
PGDATA: /var/lib/postgresql/data/pgdata
|
|
||||||
volumes:
|
volumes:
|
||||||
- tianji_pgdata:/var/lib/postgresql/data/pgdata
|
- tianji_pgdata:/var/lib/postgresql/data
|
||||||
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U tianji-user -d tianji"]
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 30s
|
|
||||||
networks:
|
networks:
|
||||||
- cpn_tianji_network
|
- cpn_tianji_network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
cpn_tianji_network:
|
cpn_tianji_network:
|
||||||
name: cpn_tianji_network
|
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
tianji_pgdata:
|
tianji_pgdata:
|
||||||
name: tianji_pgdata
|
name: tianji_pgdata
|
||||||
|
|||||||
@@ -13,26 +13,21 @@ description: >-
|
|||||||
server, and we need to use prometheus to obtain the status reported by the server to check
|
server, and we need to use prometheus to obtain the status reported by the server to check
|
||||||
the quality of the server.
|
the quality of the server.
|
||||||
|
|
||||||
|
|
||||||
In addition, if we develop an application that allows open source deployment, we often need
|
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
|
a telemetry system to help us collect the simplest information about other people's deployment
|
||||||
situations.
|
situations.
|
||||||
|
|
||||||
|
|
||||||
I think these tools should serve the same purpose, so is there an application that can integrate
|
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
|
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
|
and in-depth functions. But in order to achieve comprehensive monitoring, I need to install so many
|
||||||
services.
|
services.
|
||||||
|
|
||||||
|
|
||||||
It's good to specialize in one thing, if we are experts in related abilities we need such specialized
|
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
|
tools. But for most users who only have lightweight needs, an All-in-One application will be more
|
||||||
convenient and easier to use.
|
convenient and easier to use.
|
||||||
|
|
||||||
|
|
||||||
Features:
|
|
||||||
- Website Analytics: Track page views, unique visitors, and user behavior
|
|
||||||
- Uptime Monitor: Monitor your websites and services with health checks
|
|
||||||
- Server Status: Monitor server health with CPU, memory, and disk metrics
|
|
||||||
- Telemetry: Collect deployment statistics for open-source projects
|
|
||||||
- Privacy First: Self-hosted, GDPR and CCPA compliant
|
|
||||||
developer: Msgbyte
|
developer: Msgbyte
|
||||||
website: https://tianji.dev/
|
website: https://tianji.dev/
|
||||||
submitter: Weektab
|
submitter: Weektab
|
||||||
|
|||||||
Reference in New Issue
Block a user