Help with setting up cluster on 1 server

How to actually setup the data volumes would help instead of pointing to docker docs which doesn't explain best way to do it for elasticsearch. especially being able to locate the data in a specific directory.