-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
149 lines (142 loc) · 4.65 KB
/
docker-compose.yml
File metadata and controls
149 lines (142 loc) · 4.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: thoth
services:
postgres:
image: postgres:16-alpine
container_name: thoth-postgres
restart: unless-stopped
environment:
POSTGRES_USER: thoth
POSTGRES_PASSWORD: thoth_dev_pw
POSTGRES_DB: thoth
ports:
- "5433:5432"
volumes:
- thoth_pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U thoth"]
interval: 5s
timeout: 3s
retries: 5
minio:
image: minio/minio:latest
container_name: thoth-minio
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: thoth
MINIO_ROOT_PASSWORD: thoth_dev_pw
ports:
- "9010:9000"
- "9011:9001"
volumes:
- thoth_minio:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 3s
retries: 5
langfuse-postgres:
image: postgres:16-alpine
container_name: thoth-langfuse-postgres
restart: unless-stopped
environment:
POSTGRES_USER: langfuse
POSTGRES_PASSWORD: langfuse_dev_pw
POSTGRES_DB: langfuse
ports:
- "5434:5432"
volumes:
- thoth_langfuse_pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U langfuse"]
interval: 5s
timeout: 3s
retries: 5
langfuse-clickhouse:
image: clickhouse/clickhouse-server:24.3-alpine
container_name: thoth-langfuse-clickhouse
restart: unless-stopped
environment:
CLICKHOUSE_DB: langfuse
CLICKHOUSE_USER: langfuse
CLICKHOUSE_PASSWORD: langfuse_dev_pw
volumes:
- thoth_langfuse_clickhouse_data:/var/lib/clickhouse
- thoth_langfuse_clickhouse_logs:/var/log/clickhouse-server
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:8123/ping || exit 1"]
interval: 5s
timeout: 3s
retries: 10
langfuse-redis:
image: redis:7-alpine
container_name: thoth-langfuse-redis
restart: unless-stopped
command: --requirepass langfuse_dev_pw
volumes:
- thoth_langfuse_redis:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "langfuse_dev_pw", "ping"]
interval: 5s
timeout: 3s
retries: 5
langfuse:
image: langfuse/langfuse:3
container_name: thoth-langfuse
restart: unless-stopped
depends_on:
langfuse-postgres:
condition: service_healthy
langfuse-clickhouse:
condition: service_healthy
langfuse-redis:
condition: service_healthy
minio:
condition: service_healthy
ports:
- "3030:3000"
environment:
DATABASE_URL: postgresql://langfuse:langfuse_dev_pw@langfuse-postgres:5432/langfuse
DIRECT_URL: postgresql://langfuse:langfuse_dev_pw@langfuse-postgres:5432/langfuse
CLICKHOUSE_URL: http://langfuse-clickhouse:8123
CLICKHOUSE_MIGRATION_URL: clickhouse://langfuse-clickhouse:9000
CLICKHOUSE_USER: langfuse
CLICKHOUSE_PASSWORD: langfuse_dev_pw
CLICKHOUSE_CLUSTER_ENABLED: "false"
REDIS_HOST: langfuse-redis
REDIS_PORT: "6379"
REDIS_AUTH: langfuse_dev_pw
LANGFUSE_S3_EVENT_UPLOAD_BUCKET: langfuse-events
LANGFUSE_S3_EVENT_UPLOAD_REGION: us-east-1
LANGFUSE_S3_EVENT_UPLOAD_ACCESS_KEY_ID: thoth
LANGFUSE_S3_EVENT_UPLOAD_SECRET_ACCESS_KEY: thoth_dev_pw
LANGFUSE_S3_EVENT_UPLOAD_ENDPOINT: http://minio:9000
LANGFUSE_S3_EVENT_UPLOAD_FORCE_PATH_STYLE: "true"
LANGFUSE_S3_MEDIA_UPLOAD_BUCKET: langfuse-media
LANGFUSE_S3_MEDIA_UPLOAD_REGION: us-east-1
LANGFUSE_S3_MEDIA_UPLOAD_ACCESS_KEY_ID: thoth
LANGFUSE_S3_MEDIA_UPLOAD_SECRET_ACCESS_KEY: thoth_dev_pw
LANGFUSE_S3_MEDIA_UPLOAD_ENDPOINT: http://minio:9000
LANGFUSE_S3_MEDIA_UPLOAD_FORCE_PATH_STYLE: "true"
NEXTAUTH_URL: http://localhost:3030
NEXTAUTH_SECRET: 6f1c9b0a3d4e5f6a7b8c9d0e1f2a3b4c
SALT: 9a8b7c6d5e4f3a2b1c0d9e8f7a6b5c4d
ENCRYPTION_KEY: 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
TELEMETRY_ENABLED: "false"
LANGFUSE_ENABLE_EXPERIMENTAL_FEATURES: "false"
LANGFUSE_INIT_ORG_ID: thoth
LANGFUSE_INIT_ORG_NAME: Thoth
LANGFUSE_INIT_PROJECT_ID: thoth-dev
LANGFUSE_INIT_PROJECT_NAME: Thoth (dev)
LANGFUSE_INIT_PROJECT_PUBLIC_KEY: pk-lf-thoth-dev
LANGFUSE_INIT_PROJECT_SECRET_KEY: sk-lf-thoth-dev-secret
LANGFUSE_INIT_USER_EMAIL: dev@thoth.local
LANGFUSE_INIT_USER_NAME: Thoth Dev
LANGFUSE_INIT_USER_PASSWORD: thoth_dev_pw
volumes:
thoth_pg:
thoth_minio:
thoth_langfuse_pg:
thoth_langfuse_clickhouse_data:
thoth_langfuse_clickhouse_logs:
thoth_langfuse_redis: