From 1b25462375c419b3278247b9494737a99e86a25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Omar=20S=C3=A1nchez=20Pizarro?= Date: Tue, 20 Jan 2026 03:31:34 +0100 Subject: [PATCH] chore: update MongoDB version to 4.4.18 for ARMv8 compatibility and adjust healthcheck command - Changed MongoDB image from 7.0 to 4.4.18 to ensure compatibility with ARMv8.0. - Updated healthcheck command to use 'mongo' instead of 'mongosh' as per version requirements. --- docker-compose.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3c9d83b..6b22676 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,8 @@ services: # MongoDB para almacenar datos + # Usando versión 4.4.18 para compatibilidad con ARMv8.0 (ARMv8.2-A requerido desde 4.4.19+) mongodb: - image: mongo:7.0 + image: mongo:4.4.18 container_name: wallabicher-mongodb ports: - "27018:27017" @@ -12,7 +13,8 @@ services: - MONGO_INITDB_ROOT_PASSWORD=adminpassword - MONGO_INITDB_DATABASE=wallabicher healthcheck: - test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"] + # MongoDB 4.4.18 usa 'mongo' en lugar de 'mongosh' (mongosh se introdujo en 5.0+) + test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"] interval: 10s timeout: 5s retries: 5