From 23e790d7e6a92871920561c696be58e4b1550375 Mon Sep 17 00:00:00 2001 From: Alexander Konietzko Date: Wed, 21 Feb 2024 10:44:05 +0100 Subject: [PATCH] feat: Add missing env variables --- docker-compose.yml | 6 ++++++ k8s-deployments/clean-architecture.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b74c72b..e0c871b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,15 +6,21 @@ services: dockerfile: Dockerfile ports: - 80:80 + - 8080:8080 depends_on: db: condition: service_started + redis: + condition: service_started rabbitmq: condition: service_healthy links: - db environment: - ASPNETCORE_HTTP_PORTS=80 + - Kestrel__Endpoints__Http__Url=http://+:80 + - Kestrel__Endpoints__Grpc__Url=http://+:8080 + - Kestrel__Endpoints__Grpc__Protocols=Http2 - ConnectionStrings__DefaultConnection=Server=db;Database=clean-architecture;Trusted_Connection=False;MultipleActiveResultSets=true;TrustServerCertificate=True;User Id=SA;Password=Password123!# healthcheck: test: ["CMD", "curl", "--fail", "http://localhost/healthz"] diff --git a/k8s-deployments/clean-architecture.yml b/k8s-deployments/clean-architecture.yml index c17cab8..92a8910 100644 --- a/k8s-deployments/clean-architecture.yml +++ b/k8s-deployments/clean-architecture.yml @@ -35,5 +35,11 @@ spec: env: - name: ASPNETCORE_HTTP_PORTS value: 80 + - name: Kestrel__Endpoints__Http__Url + value: http://+:80 + - name: Kestrel__Endpoints__Grpc__Url + value: http://+:8080 + - name: Kestrel__Endpoints__Grpc__Protocols + value: Http2 - name: ConnectionStrings__DefaultConnection value: Server=sql-server;Database=clean-architecture;Trusted_Connection=False;MultipleActiveResultSets=true;TrustServerCertificate=True;User Id=SA;Password=Password123!# \ No newline at end of file