Commit 142e26

2025-05-26 21:12:31 MB Tech: -/-
/dev/null .. docker compose files/tianji.md
@@ 0,0 1,36 @@
+ # Tianji
+
+ ## Docker compose
+
+ ```yaml
+ services:
+ tianji:
+ image: moonrailgun/tianji:latest
+ ports:
+ - "12354:12345"
+ environment:
+ DATABASE_URL: postgresql://tianji:tianji@postgres:5432/tianji
+ JWT_SECRET: replace-me-with-a-random-string
+ ALLOW_REGISTER: "false"
+ ALLOW_OPENAPI: "false"
+ OPENAI_API_KEY: "random-string-of-characters"
+ depends_on:
+ - postgres
+ restart: always
+ postgres:
+ image: postgres:15.4-alpine
+ environment:
+ POSTGRES_DB: tianji
+ POSTGRES_USER: tianji
+ POSTGRES_PASSWORD: tianji
+ volumes:
+ - tianji-db-data:/var/lib/postgresql/data
+ restart: always
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
+ interval: 5s
+ timeout: 5s
+ retries: 5
+ volumes:
+ tianji-db-data:
+ ```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9