Here is a simple dummy docker-compose :
version: '2.4'
services:
  webserver:
    image: "webserver:latest" // apache, nginx, caddy, whatever
  volumes:
    - "shared_storage:/app/storage/shared"
  analyser:
    image: "custom:latest" // any custom script doing stuff on a volume
  volumes:
    - "shared_storage:/local/storage/shared"
volumes:
  shared_storage
The problem is, the shared_storage is mounted as own by root with rights 644 (or any user I can set using user:) but the webserver is internally running as www-data user (whose I cannot know the id in advance).
How can I grant the webserver the access to the shared_storage  volume ?
Cheers
