Permissions issue for docker compose setup

I see the permission errors for /var/www/owncloud . Have you considered setting the UID/GID of the user within the container to match the user that owns the directory on the host? This might solve the issue.