deploy docker app and attach volumes

Hi guys. I depolyed this db image using docker, the image saves its persitency in a folder (eg. pgsql creates pg_data folder) from the fly.toml i specified the location which the fly volume has to be attached. Do I have to specify the volume also on the dockerfile or it good this way?
Also, is there a way to see the memory used in the fly volume?