0
0
mirror of https://github.com/alex289/CleanArchitecture.git synced 2025-06-30 02:31:08 +00:00

feat: Add missing env variables

This commit is contained in:
Alexander Konietzko 2024-02-21 10:44:05 +01:00
parent f7bf339907
commit 23e790d7e6
No known key found for this signature in database
GPG Key ID: BA6905F37AEC2B5B
2 changed files with 12 additions and 0 deletions

View File

@ -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"]

View File

@ -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!#