diff --git a/Readme.md b/Readme.md index 764c9f6..0ae2fc3 100644 --- a/Readme.md +++ b/Readme.md @@ -44,8 +44,10 @@ To run the project, follow these steps: Requirements > This is only needed if running the API locally or only the docker image -1. Redis: `docker run --name redis -d -p 6379:6379 -e ALLOW_EMPTY_PASSWORD=yes redis:latest` -2. Add this to the redis configuration in the Program.cs +1. SqlServer: `docker run --name sqlserver -d -p 1433:1433 -e ACCEPT_EULA=Y -e SA_PASSWORD='Password123!#' mcr.microsoft.com/mssql/server` +1. RabbitMq: `docker run --name rabbitmq -d -p 5672:5672 -p 15672:15672 rabbitmq:4-management` +3. Redis: `docker run --name redis -d -p 6379:6379 -e ALLOW_EMPTY_PASSWORD=yes redis:latest` +4. Add this to the redis configuration in the Program.cs ```csharp options.ConfigurationOptions = new ConfigurationOptions { @@ -53,11 +55,10 @@ options.ConfigurationOptions = new ConfigurationOptions EndPoints = { "localhost", "6379" } }; ``` -3. RabbitMq: `docker run --name rabbitmq -d -p 5672:5672 -p 15672:15672 rabbitmq:3-management` Running the container 1. Build the Dockerfile: `docker build -t clean-architecture .` -2. Run the Container: `docker run -p 80:80 -p 8080:8080 clean-architecture` +2. Run the Container: `docker run --name clean-architecture -d -p 80:80 -p 8080:8080 clean-architecture` ### Using docker-compose diff --git a/docker-compose.yml b/docker-compose.yml index 075b50f..b4c1a8a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3" services: app: build: @@ -37,7 +36,7 @@ services: - 1433:1433 redis: - image: docker.io/bitnami/redis:7.4 + image: redis:latest environment: # ALLOW_EMPTY_PASSWORD is recommended only for development. - ALLOW_EMPTY_PASSWORD=yes diff --git a/k8s-deployments/clean-architecture.yml b/k8s-deployments/clean-architecture.yml index dc48762..c65773e 100644 --- a/k8s-deployments/clean-architecture.yml +++ b/k8s-deployments/clean-architecture.yml @@ -42,7 +42,7 @@ spec: protocol: TCP env: - name: ASPNETCORE_HTTP_PORTS - value: 80 + value: "80" - name: Kestrel__Endpoints__Http__Url value: http://+:80 - name: Kestrel__Endpoints__Grpc__Url diff --git a/k8s-deployments/redis.yml b/k8s-deployments/redis.yml index 6196e1a..4824019 100644 --- a/k8s-deployments/redis.yml +++ b/k8s-deployments/redis.yml @@ -27,7 +27,7 @@ spec: spec: containers: - name: redis - image: docker.io/bitnami/redis:7.4 + image: redis:latest env: # ALLOW_EMPTY_PASSWORD is recommended only for development. - name: ALLOW_EMPTY_PASSWORD