From e9401979be3dfc2f7cf4518b1edec48f80e691b4 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Fri, 13 Oct 2023 11:21:35 +0530 Subject: [PATCH] feat: sync versions --- .../docker/docker-compose-cluster.yml | 6 +++--- .../src/test/java/com/example/mongoes/TestApplication.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boot-mongodb-elasticsearch/docker/docker-compose-cluster.yml b/boot-mongodb-elasticsearch/docker/docker-compose-cluster.yml index 5cf77bbe9..d1556856d 100644 --- a/boot-mongodb-elasticsearch/docker/docker-compose-cluster.yml +++ b/boot-mongodb-elasticsearch/docker/docker-compose-cluster.yml @@ -4,7 +4,7 @@ services: mongo1: container_name: mongo1 hostname: mongo1 - image: mongo:7.0.1 + image: mongo:6.0.11 extra_hosts: - "host.docker.internal:host-gateway" - "docker.for.win.host.internal:host-gateway" @@ -20,7 +20,7 @@ services: mongo2: container_name: mongo2 hostname: mongo2 - image: mongo:7.0.1 + image: mongo:6.0.11 extra_hosts: - "host.docker.internal:host-gateway" - "docker.for.win.host.internal:host-gateway" @@ -33,7 +33,7 @@ services: mongo3: container_name: mongo3 hostname: mongo3 - image: mongo:7.0.1 + image: mongo:6.0.11 extra_hosts: - "host.docker.internal:host-gateway" - "docker.for.win.host.internal:host-gateway" diff --git a/boot-mongodb-elasticsearch/src/test/java/com/example/mongoes/TestApplication.java b/boot-mongodb-elasticsearch/src/test/java/com/example/mongoes/TestApplication.java index 7eb29723a..9a878ae5d 100644 --- a/boot-mongodb-elasticsearch/src/test/java/com/example/mongoes/TestApplication.java +++ b/boot-mongodb-elasticsearch/src/test/java/com/example/mongoes/TestApplication.java @@ -19,7 +19,7 @@ public class TestApplication { @Bean @RestartScope ElasticsearchContainer elasticsearchContainer() { - return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.10.2") + return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.10.3") .withEnv(Map.of("xpack.security.enabled", "false")); } @@ -27,7 +27,7 @@ ElasticsearchContainer elasticsearchContainer() { @Bean @RestartScope MongoDBContainer mongoDBContainer() { - return new MongoDBContainer(DockerImageName.parse("mongo").withTag("7.0.1")).withSharding(); + return new MongoDBContainer(DockerImageName.parse("mongo").withTag("6.0.11")).withSharding(); } public static void main(String[] args) {