ngSurvey stores by default all the files (medias or respondents) inside its database. If you would like to store your medias or respondents files in a folder instead of using the database you will need to setup a Docker volume where your data will be stored.
Here is an example of a Docker compose to run ngSurvey using a MySQL database and which defines a custom "ngsmedia" volume.