Multi NFS mounts in a stack

Issue type : persistent volumes

OS Version/build : Debian 10

App version : 20.10.5

Steps to reproduce : stack deploying

Hi evryone,

sorry for my english it’s not my mother language.

I want to deploy a nextcloud server with a stack. I have multi NFS share for persistent volume, one for the DB data another for the nextcloud directory both are the same disk and a last for the nextcloud’s data folder on dedicated disk.

When the stack is deployed i have only one volume created the DB volume, others doesn’t exist for docker.

This is my stack

        version: '3.3'
 services:
  db:
    image: mariadb
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - db:/var/lib/mysql
    networks:
      - nextcloud
    environment:
      - MYSQL_ROOT_PASSWORD=mypassword
      - MYSQL_PASSWORD=mypassword
      - MYSQL_DATABASE=mydatabase
      - MYSQL_USER=myuser
  app:
    image: nextcloud
    depends_on:
      - db
    volumes:
      - nextcloud:/var/www/html
      - nextcloud-data:/var/www/html/data
    networks:
      - nextcloud
      - traefik-public
    deploy:
      labels:
        - traefik.enable=true
        - traefik.docker.network=traefik-public
        - traefik.constraint-label=traefik-public
        - traefik.http.routers.nextcloud-http.rule=Host(`mywonderfuldomain`)
        - traefik.http.routers.nextcloud-http.entrypoints=http
        - traefik.http.routers.nextcloud-http.middlewares=https-redirect
        - traefik.http.routers.nextcloud-https.rule=Host(`mywonderfuldomain`)
        - traefik.http.routers.nextcloud-https.entrypoints=https
        - traefik.http.routers.nextcloud-https.tls=true
        - traefik.http.routers.nextcloud-https.tls.certresolver=le
        - traefik.http.services.nextcloud.loadbalancer.server.port=8080
    environment:
      - MYSQL_PASSWORD=mypassword
      - MYSQL_DATABASE=mydatabase
      - MYSQL_USER=myuser
      - MYSQL_HOST=db
 networks:
  nextcloud:
    driver: overlay
  traefik-public:
    external: true
 volumes:
  nextcloud-data:
    driver: local
    driver_opts:
    device: :/export/nextcloud
    o: addr=192.168.0.1,rw,nolock
    type: nfs
  nextcloud:
    driver: local
    driver_opts:
    device: :/export/Docker/nextcloud_1
    o: addr=192.168.0.1,rw,nolock
    type: nfs
  db:
    driver: local
    driver_opts:
     device: :/export/Docker/nextcloud_db
     o: addr=192.168.0.1,rw,nolock
     type: nfs

I don’t understand why the nextcloud volumes aren’t created.