How to change the default location of config.json?

By default it is in the mattermost/config directory.
Is it possible to change it to a different location ( lets say /mnt/config/config.json )

You can define the configuration file when starting mattermost, for example:

./bin/platform --config /mnt/config/config.json

I however never tried putting it on a different path, so I am unsure if it will properly work as expected but you will have to use the config path for every use of platform.