Sunday, 12 May 2019

How do you use env variables with docker?

I've a bunch of login details. Pre docker I'd use dotenv but it seems with docker I should pass them in as docker env variables and update my code to support that. Just feels weird to update my code to make it docker specific - is there a more general way of doing this normally? I could always use dotenv and copy the env file as part of the Dockerfile but that seems less secure...

Submitted May 12, 2019 at 07:47PM by bobbysteel

No comments:

Post a Comment