© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
stiba

❔ Deploying a dotnet core application with Docker

I'm mostly used to building NodeJS applications where during development, I keep all "secrets" and appsettings in a
.env
.env
file that gets loaded.
When deploying to production, I just have to make sure that all the environment variables are set, and the application will work.

Now, building a dotnet application I feel like this stuff is spread out a bit, and I don't know where I should put this stuff and how I should do it in production.

For example: my Auth clientId/clientSecret is added by doing
dotnet user-secrets set ....
dotnet user-secrets set ....
, but my connectionString for my postgres database is in
appsettings.json
appsettings.json
. I've tried googling this but I haven't had any luck finding any good answers.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Dockerizing dotnet
C#CC# / help
13mo ago
Need help with running a dotnet application
C#CC# / help
3y ago
Docker - NanoServer - Dotnet with PowershellCore
C#CC# / help
3y ago
✅ docker build with dotnet 8
C#CC# / help
3y ago