I also had to execute chown for the mounted folder with the docker user id -u and id -g.
chown -R $(id -u):$(id -g) ./prometheus