Skip to content

How to use datadir ? #322

Answered by edevosc2c
Gaetanbrl asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  1. Copy-datadir copy the datadir in a separate Docker volume.
  2. The script envsubst starts and replace everything needed in the separate Docker volume
  3. The application starts using the datadir from the separate Docker volume.

Unfortunately, this is not ve…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by edevosc2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #318 on January 09, 2025 10:01.