0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-08-23 11:48:37 +00:00

Add docker Readme instructions

This commit is contained in:
Alexander Konietzko 2023-07-15 13:38:26 +02:00
parent 17fdab8e06
commit a07fae2d1e
No known key found for this signature in database
GPG Key ID: BA6905F37AEC2B5B
2 changed files with 13 additions and 1 deletions

View File

@ -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:<port>/api/<controller>` where `<port>` is the port number specified in the project properties and `<controller>` 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:

View File

@ -62,6 +62,6 @@ spec:
- name: ACCEPT_EULA
value: "Y"
- name: SA_PASSWORD
value: "YourStrongPassword"
value: "Password123!#"
ports:
- containerPort: 1433