Do we really want to be typing all that out every time we run a container? Ok, we could drop this into a script and execute that but another option is to use environment variable files.
Nice and simple, we take all the environment variables in the statement above and drop them into a file on our Docker host: –
Read on and gauge for yourself how nice and simple it is.