set your datadir to a directory thats mounted to the external drive. this can be set through configuration file (bitcoin.conf) or whenever you start up bitcoind
Discussion
I had to write some information to the (bitcoin.conf) file like rpcallow and rpcstrongpass and an ip (maybe 🤔 need to switch something there)