skip to Main Content

.NET 6 Docker: Why I can't see env variable in Docker container?

There is the next section in launchsettings.json of the ASP.NET Core Web API project: "Docker": { "commandName": "Docker", "launchBrowser": true, "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger", "environmentVariables": { "ASPNETCORE_URLS": "https://+:443;http://+:80", "MYSECRETS__MYDBPASSWORD": "MyPassValue" }, "publishAllPorts": true, "useSSL": true } I run the app in a…

VIEW QUESTION
Back To Top
Search