diff --git a/docker-compose.yml b/docker-compose.yml
index 45c08de..fc94f55 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -7,6 +7,7 @@ services:
- 5432:5432
volumes:
- /var/lib/postgresql/data
+
mongodb:
image: mongo
environment:
@@ -16,3 +17,15 @@ services:
- 27017:27017
volumes:
- /var/lib/mongodb/data
+
+ mongoexpress:
+ image: mongo-express
+ environment:
+ - ME_CONFIG_MONGODB_SERVER=mongodb
+ - ME_CONFIG_MONGODB_ADMINUSERNAME=root
+ - ME_CONFIG_MONGODB_ADMINPASSWORD=mongopw
+ ports:
+ - 8081:8081
+ depends_on:
+ - mongodb
+
\ No newline at end of file
diff --git a/src/AuctionService/AuctionService.csproj b/src/AuctionService/AuctionService.csproj
index 2d35614..f4a986e 100644
--- a/src/AuctionService/AuctionService.csproj
+++ b/src/AuctionService/AuctionService.csproj
@@ -7,7 +7,7 @@
-
+
@@ -19,8 +19,10 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
diff --git a/src/SearchService/Program.cs b/src/SearchService/Program.cs
index 1be7869..536d0f5 100644
--- a/src/SearchService/Program.cs
+++ b/src/SearchService/Program.cs
@@ -9,7 +9,7 @@
// Add services to the container.
builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
-builder.Services.AddHttpClient().AddPolicyHandler(GetPolicy());
+builder.Services.AddHttpClient(conf => conf.BaseAddress = new Uri(builder.Configuration["AuctionServiceUrl"])).AddPolicyHandler(GetPolicy());
builder.Services.AddControllers();
diff --git a/src/SearchService/Services/AuctionSvcHttpClient.cs b/src/SearchService/Services/AuctionSvcHttpClient.cs
index c5c5a70..d1d1b77 100644
--- a/src/SearchService/Services/AuctionSvcHttpClient.cs
+++ b/src/SearchService/Services/AuctionSvcHttpClient.cs
@@ -21,7 +21,7 @@ public async Task> GetItemsForSearchDb()
.Project(x => x.UpdatedAt.ToString())
.ExecuteFirstAsync();
- return await _httpClient.GetFromJsonAsync>(_config["AuctionServiceUrl"] + "/api/auctions?date=" + lastUpdated);
+ return await _httpClient.GetFromJsonAsync>("/api/auctions?date=" + lastUpdated);
}
}
}