version: "2.1"
networks: {}
volumes:
  medimap-photos:
services:
  app:
    build: ./medimap-viewer-app
    privileged: true
    restart: always
    volumes:
      - "medimap-photos:/mnt/medimap-photos"
    labels:
      io.balena.features.kernel-modules: true
      io.balena.features.firmware: true
      io.balena.features.dbus: true
      io.balena.features.supervisor-api: true
      io.balena.features.balena-api: true
    environment:
      - "DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket"
      - "UDEV=1"
  rclone:
    build: ./google-drive-rsync
    restart: always
    cap_add:
      - SYS_ADMIN
    devices:
      - "/dev/fuse"
    security_opt:
      - "apparmor:unconfined"
    volumes:
      - "medimap-photos:/mnt/remote"

version: "2.1"
networks: {}
volumes:
  medimap-photos:
services:
  app:
    build: ./medimap-viewer-app
    privileged: true
    restart: always
    volumes:
      - "medimap-photos:/mnt/medimap-photos:shared"
    labels:
      io.balena.features.kernel-modules: true
      io.balena.features.firmware: true
      io.balena.features.dbus: true
      io.balena.features.supervisor-api: true
      io.balena.features.balena-api: true
    environment:
      - "DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket"
      - "UDEV=1"
  rclone:
    build: ./google-drive-rsync
    restart: always
    cap_add:
      - SYS_ADMIN
    devices:
      - "/dev/fuse"
    security_opt:
      - "apparmor:unconfined"
    volumes:
      - "medimap-photos:/mnt/remote:shared"

Make rclone volume shared between containers
Make rclone volume shared between containers
