Skip to content

Commit 18ae29b

Browse files
committed
Added langfuse
1 parent 85ca38b commit 18ae29b

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

public/svgs/langfuse.png

9.56 KB
Loading

templates/compose/langfuse.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# documentation: https://langfuse.com/docs
2+
# slogan: Langfuse is an open-source LLM engineering platform that helps teams collaboratively debug, analyze, and iterate on their LLM applications.
3+
# tags: ai, qdrant, weaviate, langchain, openai, gpt, llm, lmops, langfuse, llmops
4+
# logo: svgs/langfuse.png
5+
# port: 3000
6+
7+
version: "3"
8+
9+
services:
10+
langfuse:
11+
image: langfuse/langfuse
12+
restart: always
13+
environment:
14+
- DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-langfuse}
15+
- NEXTAUTH_URL=$SERVICE_FQDN_LANGFUSE_3000
16+
- NEXTAUTH_SECRET=$NEXTAUTH_SECRET
17+
- SALT=$SERVICE_PASSWORD_SALT
18+
- AUTH_DISABLE_SIGNUP=${AUTH_DISABLE_SIGNUP:-false}
19+
- TELEMETRY_ENABLED=${TELEMETRY_ENABLED:-false}
20+
- LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES=${LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES:-false}
21+
entrypoint:
22+
- node
23+
- web/server.js
24+
healthcheck:
25+
test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/api/public/health"]
26+
interval: 5s
27+
timeout: 5s
28+
retries: 3
29+
depends_on:
30+
postgres:
31+
condition: service_healthy
32+
postgres:
33+
image: "postgres:16-alpine"
34+
environment:
35+
- POSTGRES_DB=${POSTGRES_DB:-langfuse}
36+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
37+
- POSTGRES_USER=$SERVICE_USER_POSTGRES
38+
volumes:
39+
- "pg-data:/var/lib/postgresql/data"
40+
healthcheck:
41+
test:
42+
- CMD-SHELL
43+
- "pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}"
44+
interval: 5s
45+
timeout: 5s
46+
retries: 10

0 commit comments

Comments
 (0)