diff --git a/boot-mongodb-elasticsearch/docker/docker-compose.yml b/boot-mongodb-elasticsearch/docker/docker-compose.yml index 0cb7fcb10..168f3921c 100644 --- a/boot-mongodb-elasticsearch/docker/docker-compose.yml +++ b/boot-mongodb-elasticsearch/docker/docker-compose.yml @@ -3,7 +3,7 @@ version: "3.9" services: mongodb: hostname: mongodb - image: mongo:7.0.14 + image: mongo:8.0.0 volumes: - mongodb:/data/db ports: diff --git a/boot-mongodb-elasticsearch/pom.xml b/boot-mongodb-elasticsearch/pom.xml index 2fa83b7dd..892f4beec 100644 --- a/boot-mongodb-elasticsearch/pom.xml +++ b/boot-mongodb-elasticsearch/pom.xml @@ -229,7 +229,7 @@ - 1.22.0 + 1.23.0 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 09e4ac699..1e7559604 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 @@ -17,7 +17,7 @@ public class TestApplication { @Bean @RestartScope ElasticsearchContainer elasticsearchContainer() { - return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.14.2") + return new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.15.2") .withEnv(Map.of("xpack.security.enabled", "false")); } @@ -25,8 +25,7 @@ ElasticsearchContainer elasticsearchContainer() { @Bean @RestartScope MongoDBContainer mongoDBContainer() { - return new MongoDBContainer(DockerImageName.parse("mongo").withTag("7.0.12")) - .withSharding(); + return new MongoDBContainer(DockerImageName.parse("mongo").withTag("8.0.0")).withSharding(); } public static void main(String[] args) { diff --git a/docker-compose.yml b/docker-compose.yml index c2deea515..3efcf8df1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,7 +65,7 @@ services: - /var/run/docker.sock:/var/run/docker.sock mongodb: - image: mongo:7.0.14 + image: mongo:8.0.0 ports: - "27017:27017" volumes: