From ff500cdf7b0d8637c63892854bab6b8f7751a748 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Sun, 2 Nov 2025 09:42:34 -0700 Subject: [PATCH] Update PostgreSQL version and improve healthcheck formatting in docker-compose.yml - Updated PostgreSQL image version from 17 to 18 for the latest features and security improvements. - Adjusted volume mapping for PostgreSQL to ensure proper data storage. - Reformatted healthcheck commands for Elasticsearch and RAGFlow services for better readability. --- docker-compose.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5022d69..98448b1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -403,7 +403,7 @@ services: postgres: container_name: postgres - image: postgres:${POSTGRES_VERSION:-17} + image: postgres:${POSTGRES_VERSION:-18} restart: unless-stopped healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] @@ -415,7 +415,7 @@ services: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_DB: postgres volumes: - - langfuse_postgres_data:/var/lib/postgresql/data + - langfuse_postgres_data:/var/lib/postgresql redis: container_name: redis @@ -940,7 +940,11 @@ services: volumes: - ragflow_elasticsearch_data:/usr/share/elasticsearch/data healthcheck: - test: ["CMD-SHELL", "curl -u elastic:${RAGFLOW_ELASTICSEARCH_PASSWORD} http://localhost:9200/_cluster/health || exit 1"] + test: + [ + "CMD-SHELL", + "curl -u elastic:${RAGFLOW_ELASTICSEARCH_PASSWORD} http://localhost:9200/_cluster/health || exit 1", + ] interval: 10s timeout: 10s retries: 120 @@ -1034,7 +1038,11 @@ services: - "host.docker.internal:host-gateway" healthcheck: - test: ["CMD-SHELL", "wget -qO- http://localhost:9621/health > /dev/null 2>&1 || exit 1"] + test: + [ + "CMD-SHELL", + "wget -qO- http://localhost:9621/health > /dev/null 2>&1 || exit 1", + ] interval: 30s timeout: 10s retries: 5