Skip to content

Instantly share code, notes, and snippets.

@changhuixu
Created May 15, 2020 23:32
Show Gist options
  • Select an option

  • Save changhuixu/363713e9008430be947750064ad3b31f to your computer and use it in GitHub Desktop.

Select an option

Save changhuixu/363713e9008430be947750064ad3b31f to your computer and use it in GitHub Desktop.
version: "3"
services:
api:
build: .
image: aspnetapp
ports:
- "44392:443"
- "54023:80"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_HTTPS_PORT=44392
- ASPNETCORE_Kestrel__Certificates__Default__Password=mypassword123
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
volumes:
- ./https/aspnetapp.pfx:/https/aspnetapp.pfx:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment