Yes, we do not recommend it. You have to keep in mind that config file can be changed due to update process.
So, for container deploying you can use environment variables.
But there’s a workaround solution for parameters which cannot be set via environment.
As we know default.json file can be overwritten during an update and the changes will be lost. If you wish to avoid that, you can create a file named local-production-linux.json in the same folder and paste the required parameters from default.json there. It will have priority over any other configuration files. Note that the structure of default.json needs to be strictly preserved, but you only need to paste the parameters you need, not the full contents of it.
Since you’re using Docker, you will also need to mount the file from the host machine so that any new container could use it.
1 Like