forked from langfuse/langfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
98 lines (93 loc) · 3.06 KB
/
docker-compose.dev.yml
File metadata and controls
98 lines (93 loc) · 3.06 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
services:
clickhouse:
# Upgrade from 24.3 to check behaviour on new events table.
# Unit tests still verify 24.3 behaviour using -azure and -redis-cluster configs.
image: docker.io/clickhouse/clickhouse-server:25.8
user: "101:101"
container_name: ${CLICKHOUSE_CONTAINER_NAME:-langfuse-clickhouse}
environment:
CLICKHOUSE_DB: default
CLICKHOUSE_USER: ${CLICKHOUSE_USER:-clickhouse}
CLICKHOUSE_PASSWORD: ${CLICKHOUSE_PASSWORD:-clickhouse}
volumes:
- langfuse_clickhouse_data:/var/lib/clickhouse
- langfuse_clickhouse_logs:/var/log/clickhouse-server
ports:
- ${HOST_IP:-127.0.0.1}:${CLICKHOUSE_HTTP_PORT:-8123}:8123
- ${HOST_IP:-127.0.0.1}:${CLICKHOUSE_NATIVE_PORT:-9000}:9000
depends_on:
- postgres
networks:
- default
minio:
image: cgr.dev/chainguard/minio
container_name: ${MINIO_CONTAINER_NAME:-langfuse-minio}
entrypoint: sh
# create the 'langfuse' bucket before starting the service
command: -c 'mkdir -p /data/langfuse && minio server --address ":9000" --console-address ":9001" /data'
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER:-minio}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD:-miniosecret}
ports:
- ${HOST_IP:-127.0.0.1}:${MINIO_API_PORT:-9090}:9000
- ${HOST_IP:-127.0.0.1}:${MINIO_CONSOLE_PORT:-9091}:9001
volumes:
- langfuse_minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 1s
timeout: 5s
retries: 5
start_period: 1s
networks:
- default
redis:
image: docker.io/redis:7.2.4
container_name: ${REDIS_CONTAINER_NAME:-langfuse-redis}
restart: always
command: >
--requirepass ${REDIS_AUTH:-myredissecret}
--maxmemory-policy noeviction
ports:
- ${HOST_IP:-127.0.0.1}:${REDIS_HOST_PORT:-6379}:6379
networks:
- default
postgres:
image: docker.io/postgres:${POSTGRES_VERSION:-17}
container_name: ${POSTGRES_CONTAINER_NAME:-langfuse-postgres}
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
command: ["postgres", "-c", "log_statement=all"]
environment:
- POSTGRES_USER=${POSTGRES_USER:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
- TZ=UTC
- PGTZ=UTC
ports:
- ${HOST_IP:-127.0.0.1}:${POSTGRES_HOST_PORT:-5432}:5432
volumes:
- langfuse_postgres_data:/var/lib/postgresql/data
networks:
- default
volumes:
langfuse_postgres_data:
name: ${POSTGRES_VOLUME_NAME:-langfuse_postgres_data}
driver: local
langfuse_clickhouse_data:
name: ${CLICKHOUSE_DATA_VOLUME_NAME:-langfuse_clickhouse_data}
driver: local
langfuse_clickhouse_logs:
name: ${CLICKHOUSE_LOGS_VOLUME_NAME:-langfuse_clickhouse_logs}
driver: local
langfuse_minio_data:
name: ${MINIO_VOLUME_NAME:-langfuse_minio_data}
driver: local
networks:
default:
name: ${DOCKER_NETWORK_NAME:-langfuse-network}
driver: bridge