Skip to content

Commit

Permalink
Change HTTPS port in compose and create volume (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckth authored Oct 22, 2024
1 parent 24f92c9 commit f1e6573
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions coffeecard/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: "3.8"

volumes:
mssql:

services:
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
Expand All @@ -11,6 +14,8 @@ services:
restart: unless-stopped
ports:
- 1433:1433
volumes:
- mssql:/var/opt/mssql

webapi:
container_name: coffeecard-api
Expand All @@ -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:
Expand Down

0 comments on commit f1e6573

Please sign in to comment.