From f1e6573adcbff2b2f272a4c7fcd978b2b524b37a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Tr=C3=B8strup?= Date: Tue, 22 Oct 2024 17:30:34 +0200 Subject: [PATCH] Change HTTPS port in compose and create volume (#290) --- coffeecard/docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/coffeecard/docker-compose.yml b/coffeecard/docker-compose.yml index b94bab9f..046c5b37 100644 --- a/coffeecard/docker-compose.yml +++ b/coffeecard/docker-compose.yml @@ -1,5 +1,8 @@ version: "3.8" +volumes: + mssql: + services: mssql: image: mcr.microsoft.com/mssql/server:2022-latest @@ -11,6 +14,8 @@ services: restart: unless-stopped ports: - 1433:1433 + volumes: + - mssql:/var/opt/mssql webapi: container_name: coffeecard-api @@ -20,11 +25,11 @@ services: depends_on: [ mssql ] ports: - 8080:8080 - - 8001:8001 + - 8081:8081 environment: - ASPNETCORE_ENVIRONMENT=Development # - ASPNETCORE_URLS=https://+:443;http://+:80 - - ASPNETCORE_HTTPS_PORTS=8001 + - ASPNETCORE_HTTPS_PORTS=8081 - ASPNETCORE_Kestrel__Certificates__Default__Path=/https/CoffeeCard.WebApi.pfx - ASPNETCORE_Kestrel__Certificates__Default__Password=crypticpassword volumes: