From 52b2cb512e616fb7dc648af55ffdaa72186224bc Mon Sep 17 00:00:00 2001 From: Alexander Konietzko Date: Sat, 15 Jul 2023 15:14:43 +0200 Subject: [PATCH] Add correct connection string informations --- Readme.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index 485e0cd..e4f2ffa 100644 --- a/Readme.md +++ b/Readme.md @@ -35,14 +35,20 @@ To run the project, follow these steps: ### Using docker -Build the Dockerfile: `docker build -t clean-architecture .` +1. Build the Dockerfile: `docker build -t clean-architecture .` +2. Run the Container: `docker run -p 80:80 clean-architecture` -Run the Container: `docker run -p 80:80 clean-architecture` +### Using docker-compose +1. Change the ConnectionString in the appsettings.json to `Server=db;Database=clean-architecture;Trusted_Connection=False;MultipleActiveResultSets=true;TrustServerCertificate=True;User Id=SA;Password=Password123!#` +2. Build the Dockerfile: `docker build -t clean-architecture .` +3. Running the docker compose: `docker-compose up -d` (Delete: `docker-compose down`) -Running the docker compose: `docker-compose up -d` (Delete: `docker-compose down`) +### Using Kubernetes -Running Kubernetes: `kubectl apply -f k8s-deployment.yml` +1. Change the ConnectionString in the appsettings.json to `Server=clean-architecture-db-service;Database=clean-architecture;Trusted_Connection=False;MultipleActiveResultSets=true;TrustServerCertificate=True;User Id=SA;Password=Password123!#` +2. Build the docker image and push it to the docker hub (Change the image name in the `k8s-deployment.yml` to your own) +Apply the deployment file: `kubectl apply -f k8s-deployment.yml` (Delete: `kubectl delete -f k8s-deployment.yml`) ## Running the Tests