Control location of ~/.influxdbv2 folder

I am trying to run two InfluxDB v2 instances on a machine such that they are 100% isolated from each other. As such, I need to control the location of the ~/.influxdbv2 folder, such that ~/.influxdbv2/configs gets put in a different location (for example).

I know I can set up a config.toml file to control engine-path and bolt-path, but I can’t find a variable that lets me move everything that would ever go in ~/.influxdbv2.

Any help?

The key thing I was misunderstanding was the /.influxdbv2/configs file is for the influx command line utility. You can control its location via the --configs-path argument.

Problem solved!

@mpderbec thanks for sharing your solution!