I have my app inside a container and it's reading environment variables for passwords and API keys to access services. If I run the app on my machine (not inside docker), I just export SERVICE_KEY='wefhsuidfhda98'
and the app can use it.
What's the standard approach to this? I was thinking of having a secret file which would get added to the server with export
commands and then run a source
on that file.
I'm using docker & fig.