Created
February 12, 2025 12:42
-
-
Save OSCUK/f6d9b9374e27685eec365dc750f7e4e9 to your computer and use it in GitHub Desktop.
Tianji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "4378n5c467fn467nt4t4735nc8473578435v4" | |
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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment