So I have a custom config.production.json that I want to load in my docker container every time the docker container restarts / updates and changes the file.
Right now I’m manually changing the file everytime it gets changed, but sometimes I won’t notice and would rather that the file is overwritten by my local file.
Unfortunately a volume seems not to be possible as it points to the content folder.
So how can I do this?
I found this link, but didn’t quite understand if this is what I’m looking for:
Related question - do we really need these static config files? Can’t we get ghost all of the env it needs using docker-compose instead of config.development.json? If so, then how?
The portal url comes from the environment, so you should be able to do portal__url=xxx portal__version=yyy
@GhostDog most if not all config options can come from env vars. I’m not sure if the config file has to exist, but if it does, it can be an empty json object ({})