diff --git a/docker-compose.yml b/docker-compose.yml index 2e37178..d1d8942 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,4 +14,7 @@ services: - "443:8081" volumes: - /opt/configs/emailsender-apis-prod.json:/app/appsettings.Production.json:ro + - /opt/certs/wildcard-emailsender.dev.key:/usr/local/share/ca-certificates/wildcard-emailsender.dev.key:ro + - /opt/certs/wildcard-emailsender.dev.ca:/usr/local/share/ca-certificates/wildcard-emailsender.dev.ca:ro + - /opt/certs/wildcard-emailsender.dev.crt:/usr/local/share/ca-certificates/wildcard-emailsender.dev.crt:ro - /opt/certs/wildcard-emailsender.dev.pfx:/https/wildcard-emailsender.dev.pfx:ro \ No newline at end of file diff --git a/dockerfile b/dockerfile index 11c0fcc..d029130 100644 --- a/dockerfile +++ b/dockerfile @@ -48,6 +48,10 @@ ENV ASPNETCORE_Kestrel__Certificates__Default__Password=${PFX_PASSWORD} ENV ASPNETCORE_Kestrel__Certificates__Default__Path=/https/wildcard-emailsender.dev.pfx ENV ASPNETCORE_HTTPS_PORT=8081 ENV ASPNETCORE_URLS=https://+:8081;http://+:8080 + +RUN update-ca-certificates + EXPOSE 8080 EXPOSE 8081 + ENTRYPOINT ["dotnet", "EmailSender.WebApi.dll"]