🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(docker-compose): bind services to localhost (#6023)
Hassieb Pakzadd2001d110dcf
diff --git a/docker-compose.dev.yml b/docker-compose.dev.ymlindex e881a21900..b88aa9bbee 100644--- a/docker-compose.dev.yml+++ b/docker-compose.dev.yml@@ -10,8 +10,8 @@ services:- langfuse_clickhouse_data:/var/lib/clickhouse- langfuse_clickhouse_logs:/var/log/clickhouse-serverports:- - "8123:8123"- - "9000:9000"+ - 127.0.0.1:8123:8123+ - 127.0.0.1:9000:9000depends_on:- postgres@@ -24,8 +24,8 @@ services:MINIO_ACCESS_KEY: minioMINIO_SECRET_KEY: miniosecretports:- - "9090:9000"- - "9091:9001"+ - 127.0.0.1:9090:9000+ - 127.0.0.1:9091:9001volumes:- langfuse_minio_data:/datahealthcheck:@@ -41,7 +41,7 @@ services:command: >--requirepass ${REDIS_AUTH:-myredissecret}ports:- - 6379:6379+ - 127.0.0.1:6379:6379postgres:image: postgres:${POSTGRES_VERSION:-latest}@@ -57,7 +57,7 @@ services:- POSTGRES_PASSWORD=postgres- POSTGRES_DB=postgresports:- - 5432:5432+ - 127.0.0.1:5432:5432volumes:- langfuse_postgres_data:/var/lib/postgresql/datadiff --git a/docker-compose.yml b/docker-compose.ymlindex 8667cf4f31..972dd62b23 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -1,8 +1,8 @@# Make sure to update the credential placeholders with your own secrets.# We mark them with # CHANGEME in the file below.# In addition, we recommend to restrict inbound traffic on the host to langfuse-web (port 3000) and minio (port 9090) only.-# All other components should not be exposed to the public internet. Therefore, we do not map them to host ports, but-# you can do so by uncommenting the respective lines in the file below.+# All other components are bound to localhost (127.0.0.1) to only accept connections from the local machine.+# External connections from other machines will not be able to reach these services directly.services:langfuse-worker:image: langfuse/langfuse-worker:3@@ -16,8 +16,8 @@ services:condition: service_healthyclickhouse:condition: service_healthy- # ports:- # - "3030:3030"+ ports:+ - 127.0.0.1:3030:3030environment: &langfuse-worker-envDATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres # CHANGEMESALT: "mysalt" # CHANGEME@@ -58,7 +58,7 @@ services:restart: alwaysdepends_on: *langfuse-depends-onports:- - "3000:3000"+ - 3000:3000environment:<<: *langfuse-worker-envNEXTAUTH_URL: http://localhost:3000@@ -84,9 +84,9 @@ services:volumes:- langfuse_clickhouse_data:/var/lib/clickhouse- langfuse_clickhouse_logs:/var/log/clickhouse-server- # ports:- # - "8123:8123"- # - "9000:9000"+ ports:+ - 127.0.0.1:8123:8123+ - 127.0.0.1:9000:9000healthcheck:test: wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1interval: 5s@@ -104,8 +104,8 @@ services:MINIO_ROOT_USER: minioMINIO_ROOT_PASSWORD: miniosecret # CHANGEMEports:- - "9090:9000"- # - "9091:9001"+ - 9090:9000+ - 127.0.0.1:9091:9001volumes:- langfuse_minio_data:/datahealthcheck:@@ -121,8 +121,8 @@ services:# CHANGEME: row below to secure redis passwordcommand: >--requirepass ${REDIS_AUTH:-myredissecret}- # ports:- # - 6379:6379+ ports:+ - 127.0.0.1:6379:6379healthcheck:test: ["CMD", "redis-cli", "ping"]interval: 3s@@ -141,8 +141,8 @@ services:POSTGRES_USER: postgresPOSTGRES_PASSWORD: postgres # CHANGEMEPOSTGRES_DB: postgres- # ports:- # - 5432:5432+ ports:+ - 127.0.0.1:5432:5432volumes:- langfuse_postgres_data:/var/lib/postgresql/data