Giter Site home page Giter Site logo

Comments (8)

mbehnasr avatar mbehnasr commented on June 11, 2024

I have same problem and I don't how fix that
my os is ubuntu22

from run-aspnetcore-microservices.

JuliusKoronciCH avatar JuliusKoronciCH commented on June 11, 2024

this is a massive pain based on chatgpt the kestrel certificate and password need to be an env var I tried on my mac and also on windows

from run-aspnetcore-microservices.

BardiaYaghmaie avatar BardiaYaghmaie commented on June 11, 2024

this should be fixed

from run-aspnetcore-microservices.

JuliusKoronciCH avatar JuliusKoronciCH commented on June 11, 2024

let me pull again but I checked out the repo 2 days ago and I dont see any commits since

from run-aspnetcore-microservices.

JuliusKoronciCH avatar JuliusKoronciCH commented on June 11, 2024

@BardiaYaghmaie after some tinkering this works when running from visual studio as it does some additional magic but running docker-compose -f docker-compose.yml -f docker-compose.override.yml up -d is missing a few things so I would recommend updating the docker compose overrides and the documentation ..like the hardcoded windows paths and the fact that rider or just VS Code are not an option make it hard to use ..I had to switch from my mac to my windows machine to get it working

from run-aspnetcore-microservices.

mbehnasr avatar mbehnasr commented on June 11, 2024

Did you find any solution regarding the volumes set in docker-compose.override? I can't find 'usersecrets' and 'Https'. I can't find these two.

from run-aspnetcore-microservices.

JuliusKoronciCH avatar JuliusKoronciCH commented on June 11, 2024

@mbehnasr for db services I had to add
- POSTGRES_HOST_AUTH_METHOD=trust

  for the volumes on my mac its
    volumes:
  - ~/.microsoft/usersecrets:/home/app/.microsoft/usersecrets:ro
  - ~/.microsoft/devcerts:/home/app/.aspnet/https:ro
  
  but ask AI it helps
  
  this will still not solve the issues with https follow this article: https://learn.microsoft.com/en-us/aspnet/core/security/docker-https?view=aspnetcore-8.0 

from run-aspnetcore-microservices.

JuliusKoronciCH avatar JuliusKoronciCH commented on June 11, 2024

this one worked for me and the diff is that visual studio configure and runs with the correct certs while otherwise you need to generate your certs with a password amd mount the location and also tell dotnet where to find them and whats the password
dotnet dev-certs https -ep ./certs/aspnetapp.pfx -p SuperSecretPassword

shopping.web:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
- ASPNETCORE_HTTPS_PORTS=8081
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ASPNETCORE_Kestrel__Certificates__Default__Password=SuperSecretPassword
- ApiSettings__GatewayAddress=http://yarpapigateway:8080
depends_on:
- yarpapigateway
ports:
- "6005:8080"
- "6065:8081"
volumes:
- ./certs:/https/

from run-aspnetcore-microservices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.