From 5a44d7927929fb5740a8dc79006931734289372c Mon Sep 17 00:00:00 2001 From: tiltshiftfocus Date: Tue, 20 May 2025 14:50:35 +0800 Subject: [PATCH] Fix healthcheck and environment variables in docker-compose.yml --- docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index e7e428c..164e485 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -10,7 +10,7 @@ services: environment: - PORT=${API_INTERNAL_PORT:-3333} # Port for the backend service - DATABASE_URL=postgresql://postgres:${POSTGRESQL_PASSWORD:-postgresRootPassword}@postgres:5432/palmr_db?schema=public # Database URL with configurable password through POSTGRESQL_PASSWORD env var - - MINIO_ENDPOINT=minio # This can change if your MinIO is at a different address + - MINIO_ENDPOINT=${MINIO_ENDPOINT:-minio} # This can change if your MinIO is at a different address - MINIO_PORT=${MINIO_INTERNAL_API_PORT:-6421} # Default MinIO port (Change if yours is not the default) - MINIO_USE_SSL=false # MinIO uses SSL by default, but you can change it to true if needed - MINIO_ROOT_USER=${MINIO_ROOT_USER:-minio_root_user} # MinIO credentials can be configured through MINIO_ROOT_USER env vars @@ -24,7 +24,7 @@ services: - "${API_EXTERNAL_PORT:-3333}:${API_INTERNAL_PORT:-3333}" # Backend port mapping restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:${API_INTERNAL_PORT:-3333}/health"] + test: ["CMD", "wget", "--no-verbose", "http://palmr-api:${API_INTERNAL_PORT:-3333}/health"] interval: 10s timeout: 5s retries: 5