forked from tma1-ai/openfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
126 lines (120 loc) · 4.42 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
126 lines (120 loc) · 4.42 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
services:
greptimedb:
# GreptimeDB backend for the fork. Replaces ClickHouse as the analytics store; the read/write
# paths and the test harness target this. Standalone mode exposes HTTP (4000), gRPC (4001,
# ingest SDK), MySQL wire (4002, read pool + migrations), and Postgres wire (4003).
# The entrypoint wrapper loads docker/greptimedb/config.toml as a tuning starting point.
# Local dev leaves GREPTIME_PASSWORD empty, so auth stays off; set it to exercise
# enforced static auth locally.
image: docker.io/greptime/greptimedb:v1.1.1
container_name: ${GREPTIME_CONTAINER_NAME:-langfuse-greptimedb}
entrypoint: ["/bin/sh", "/usr/local/bin/openfuse-greptime-entrypoint.sh"]
environment:
GREPTIME_USER: ${GREPTIME_USER:-openfuse}
GREPTIME_PASSWORD: ${GREPTIME_PASSWORD:-}
ports:
- ${HOST_IP:-127.0.0.1}:${GREPTIME_HTTP_PORT:-4000}:4000
- ${HOST_IP:-127.0.0.1}:${GREPTIME_GRPC_PORT:-4001}:4001
- ${HOST_IP:-127.0.0.1}:${GREPTIME_MYSQL_PORT:-4002}:4002
- ${HOST_IP:-127.0.0.1}:${GREPTIME_PG_PORT:-4003}:4003
volumes:
- langfuse_greptimedb_data:/greptimedb_data
- ./docker/greptimedb/config.toml:/etc/greptime/config.toml:ro
- ./docker/greptimedb/entrypoint.sh:/usr/local/bin/openfuse-greptime-entrypoint.sh:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 5s
timeout: 5s
retries: 10
start_period: 2s
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
floci:
profiles:
- worker-tests
image: docker.io/floci/floci:1.5.17-compat
user: "0"
container_name: ${FLOCI_CONTAINER_NAME:-langfuse-floci}
environment:
FLOCI_HOSTNAME: floci
FLOCI_INIT_HOOKS_TIMEOUT_SECONDS: 120
ports:
- ${HOST_IP:-127.0.0.1}:${FLOCI_PORT:-4566}:4566
volumes:
# Floci Lambda starts real Docker containers for function invocations.
# See: https://floci.io/floci/services/lambda/
- /var/run/docker.sock:/var/run/docker.sock
# The init hook packages these local runner sources into Lambda ZIPs on startup.
- ./scripts/code-eval-runners:/opt/code-eval-runners:ro
- ./scripts/code-eval-runners/bootstrap-floci.py:/etc/floci/init/ready.d/01-bootstrap-code-eval-runners.py:ro
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_greptimedb_data:
name: ${GREPTIME_DATA_VOLUME_NAME:-langfuse_greptimedb_data}
driver: local
langfuse_minio_data:
name: ${MINIO_VOLUME_NAME:-langfuse_minio_data}
driver: local
networks:
default:
name: ${DOCKER_NETWORK_NAME:-langfuse-network}
driver: bridge