From 72e5a7accc32c0401ce388522c0fd66d0fb81c15 Mon Sep 17 00:00:00 2001 From: nkz <5499916+nkz-soft@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:54:40 +0300 Subject: [PATCH] #277 Update versions of docker images for docker compose (#278) --- .../docker/docker-compose-infrastructure.yaml | 20 +++++++++---------- .../Containers/ContainerFactory.cs | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/deployment/docker/docker-compose-infrastructure.yaml b/deployment/docker/docker-compose-infrastructure.yaml index e7871aa..8db9748 100644 --- a/deployment/docker/docker-compose-infrastructure.yaml +++ b/deployment/docker/docker-compose-infrastructure.yaml @@ -7,11 +7,11 @@ volumes: services: postgres: - image: postgres:16-alpine3.19 + image: postgres:16-alpine environment: POSTGRES_PASSWORD: postgres ports: - - "0.0.0.0:5432:5432" + - "127.0.0.1:5432:5432" networks: - dev-network volumes: @@ -23,13 +23,13 @@ services: retries: 15 rabbitmq: - image: rabbitmq:3.4-management + image: rabbitmq:3.13-management environment: RABBITMQ_DEFAULT_USER: rabbitmq RABBITMQ_DEFAULT_PASS: rabbitmq ports: - - "0.0.0.0:5672:5672" - - "0.0.0.0:15672:15672" + - "127.0.0.1:5672:5672" + - "127.0.0.1:15672:15672" networks: - dev-network volumes: @@ -41,9 +41,9 @@ services: retries: 15 redis: - image: redis:7-alpine + image: redis:7.4-alpine ports: - - "0.0.0.0:6379:6379" + - "127.0.0.1:6379:6379" networks: - dev-network healthcheck: @@ -53,13 +53,13 @@ services: retries: 15 jaeger: - image: jaegertracing/all-in-one:1.55 + image: jaegertracing/all-in-one:1.9 environment: - COLLECTOR_OTLP_ENABLED=true - LOG_LEVEL=debug ports: - - "0.0.0.0:16686:16686" - - "0.0.0.0:4317:4317" + - "127.0.0.1:16686:16686" + - "127.0.0.1:4317:4317" networks: - dev-network diff --git a/tests/NKZSoft.Template.Common.Tests/Containers/ContainerFactory.cs b/tests/NKZSoft.Template.Common.Tests/Containers/ContainerFactory.cs index 6bda53d..f414b57 100644 --- a/tests/NKZSoft.Template.Common.Tests/Containers/ContainerFactory.cs +++ b/tests/NKZSoft.Template.Common.Tests/Containers/ContainerFactory.cs @@ -30,7 +30,7 @@ private static PostgreSqlContainer CreatePostgreSql() => .WithUsername(PostgresUsername) .WithPassword(PostgresPassword) .WithDatabase(Database) - .WithImage("postgres:14") + .WithImage("postgres:16-alpine") .WithPortBinding(5432, 5432) .WithAutoRemove(true) .WithCleanUp(true) @@ -41,7 +41,7 @@ private static RabbitMqContainer CreateRabbitMq() => new RabbitMqBuilder() .WithUsername(RabbitMqUsername) .WithPassword(RabbitMqPassword) - .WithImage("rabbitmq:3.11-management") + .WithImage("rabbitmq:3.13-management") .WithPortBinding(5672, 5672) .WithAutoRemove(true) .WithCleanUp(true) @@ -50,7 +50,7 @@ private static RabbitMqContainer CreateRabbitMq() => private static IContainer CreateRedis() => new ContainerBuilder() - .WithImage("redis:7.0") + .WithImage("redis:7.4-alpine") .WithPortBinding(6379, 6379) .WithAutoRemove(true) .WithCleanUp(true)