Specify path for container installation

Hi there

I startet using docker for my influxdb/grafana combo on my server. Now I intend to upgrade the server with a installation from scratch. Goal: install containers/volumes to a external diskstation. This way I hope to preserve all containers and data so that i just have to restart docker and the containers after installation. Is this possible If yes how?

Thanks for your help