Docker Configuration files + Environment Variables

When testing locally a configuration file will allow you to quickly set all the launch environment variables easily

https://docs.docker.com/engine/reference/commandline/cli/#configuration-files

Example file test.env

REDIS_HOST=host.docker.internal
SPECIAL_KEY=here_it_is

Then run the docker container as such

docker -it run --env-file=.\test.env <docker_image_name> -P

Which will run the docker container in interactive mode and log you to the shell prompt of the specified image (bash).  With the above environment variables set. 😺