How to use external USB storage for InfluxDB?

Hi, I’m running HA on an Odroid N2. I’ve installed the HAOS version in an eMMC drive.

Now I want to install InfluxDB and store the data on external USB drive (stick or SSD). How can I configure Home Assistant and InfluxDB to use the external USB drive?

I found some posts about this topic, but they are several years old and outdated.