From a07fae2d1eb1a7dac67d5339891f9e64444b19d4 Mon Sep 17 00:00:00 2001 From: Alexander Konietzko Date: Sat, 15 Jul 2023 13:38:26 +0200 Subject: [PATCH] Add docker Readme instructions --- Readme.md | 12 ++++++++++++ k8s-deployment.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 7f36628..485e0cd 100644 --- a/Readme.md +++ b/Readme.md @@ -33,6 +33,18 @@ To run the project, follow these steps: 6. The database migrations will be automatically applied on start-up. If the database does not exist, it will be created. 7. The API should be accessible at `https://localhost:/api/` where `` is the port number specified in the project properties and `` is the name of the API controller. +### Using docker + +Build the Dockerfile: `docker build -t clean-architecture .` + +Run the Container: `docker run -p 80:80 clean-architecture` + + +Running the docker compose: `docker-compose up -d` (Delete: `docker-compose down`) + +Running Kubernetes: `kubectl apply -f k8s-deployment.yml` + + ## Running the Tests To run the tests, follow these steps: diff --git a/k8s-deployment.yml b/k8s-deployment.yml index 85b8d6c..29799f6 100644 --- a/k8s-deployment.yml +++ b/k8s-deployment.yml @@ -62,6 +62,6 @@ spec: - name: ACCEPT_EULA value: "Y" - name: SA_PASSWORD - value: "YourStrongPassword" + value: "Password123!#" ports: - containerPort: 1433