Docker Run-time Configuration File

Viewed 1900

I am a docker beginner working on containerizing an application and I am looking for a solution to pass a specific configuration file to each container.

What I need for my application is a JSON file to be copied from the host to the container based on the value of an environment variable when the container starts. This file should be instance specific so I can't include it in the image.

Could you please help me with some suggestions on how to accomplish that?

Thank you!

1 Answers
Related