Docker duplicated volumes after creating Stack in Portainer?

Hi.

I’m running Portainer and used the Stack feature to run the following Docker Compose file:

version: '2'

volumes:
  nextcloud:
  db:

services:
  db:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb_read_only_compressed=OFF
    volumes:
      - db:/mnt/storage/docker/volumes/nextcloud/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=
      - MYSQL_PASSWORD=
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud

  app:
    image: nextcloud
    restart: always
    ports:
      - 8888:80
    links:
      - db
    volumes:
      - nextcloud:/mnt/storage/docker/volumes/nextcloud/www/html
    environment:
      - MYSQL_PASSWORD=
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db

After deploying the stack I end up with the following volumes for nextcloud and mariadb

nextcloud_app_1
image

nextcloud_db_1

Also, if I continue with the installation, I see that the main storage (within the configuration of Nextcloud is not on the disk I want it to be.

I want to store ALL data into a separate disk mounted on /mnt/storage/

What am I doing wrong? :thinking:

TIA