-
For a development stack, Docker compose create a Container :
Some questions about :
Thanks :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
HistoryCopy-datadir container was born because we use a script called envsubst which allow injecting environment variables in the config files that do not support environment variables. Let's say you want to avoid storing some database credentials in git, so you use an env, but the application does not support envs. So we had to use envsubst to replace the specific string with the env BEFORE the application starts. The workflow is this way:
Unfortunately, this is not very practical and user-friendly. We actually tried to implement a functionality that exist in Kubernetes but not in Docker compose, but this didn't work like we really wanted. We actually want to get rid of this specific "copy-datadir" container: #291. Answer to the technical problems
|
Beta Was this translation helpful? Give feedback.
History
Copy-datadir container was born because we use a script called envsubst which allow injecting environment variables in the config files that do not support environment variables. Let's say you want to avoid storing some database credentials in git, so you use an env, but the application does not support envs. So we had to use envsubst to replace the specific string with the env BEFORE the application starts.
The workflow is this way:
Unfortunately, this is not ve…