diff --git a/Cloud/Cloud.csproj b/Cloud/Cloud.csproj
index 93e4190..6a5fc81 100644
--- a/Cloud/Cloud.csproj
+++ b/Cloud/Cloud.csproj
@@ -15,6 +15,7 @@
all
+
diff --git a/Cloud/Program.cs b/Cloud/Program.cs
index d1e6521..c02b6fb 100644
--- a/Cloud/Program.cs
+++ b/Cloud/Program.cs
@@ -6,12 +6,20 @@ using System.Text;
using FluentValidation;
using FluentValidation.AspNetCore;
using Cloud.Validation;
+using StackExchange.Redis;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
-//Jwt configuration starts here
+//Redis configuration
+builder.Services.AddSingleton(sp =>
+{
+ var configuration = ConfigurationOptions.Parse("localhost:6379");
+ return ConnectionMultiplexer.Connect(configuration);
+});
+
+//Jwt configuration
var jwtIssuer = builder.Configuration.GetSection("Jwt:Issuer").Get();
var jwtKey = builder.Configuration.GetSection("Jwt:Key").Get();
diff --git a/docker-compose.yml b/docker-compose.yml
index 6915ce1..f13b1b9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,6 +11,21 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
+ redis:
+ image: 'redis:latest'
+ ports:
+ - '6379:6379'
+ volumes:
+ - 'cloud-redis:/data'
+ healthcheck:
+ test:
+ - CMD
+ - redis-cli
+ - ping
+ retries: 3
+ timeout: 5s
volumes:
postgres_data:
+ driver: local
+ cloud-redis:
driver: local
\ No newline at end of file