Run docker-compose volume as custom user


I have set up a testserver with docker and docker-compose and my plan is to move my existing server with nextcloud and wordpress to docker.

I have setup a testserver and all seems to work fine. The only problem i have right now is that when i create a container with docker-compose is that the docker volumes is owned by www-data which make it hard when i need to upload files with sftp.

Is it possible to change the owner of a docker volume to a local user and group like myuser:myuser or muyuser:mygroup?