Stacks deployment error (volume link to host absolute path - urbackup container)

Hello,

i set up an urbackup img via portainer (host system openmediavault 5)

my root problem is, how can i link the file path in the cotainer to my host filesystem. At first glance i did this via a Template an build a new container via this settings. That worked but after a reboot it it reverted to the default paths.Then i tried stacks

services:

urbackup:

image: uroni/urbackup-server:latest

container_name: urbackup

restart: unless-stopped

environment:

- PUID=0 # Enter the UID of the user who should own the files here

- PGID=0 # Enter the GID of the user who should own the files here

- TZ=Europe/Berlin # Enter your timezone

volumes:

- /srv/dev-disk-by-label-Backups/Raid1Backups/database:/var/urbackup
- /srv/dev-disk-by-label-Backups/Raid1Backups/urbackupfiles:/backups

# Uncomment the next line if you want to bind-mount the www-folder

#- /path/to/wwwfolder:/usr/share/urbackup

network_mode: "host"

# Activate the following two lines for BTRFS support

#cap_add:

# - SYS_ADMIN

But this gives me an deplyoment error:
yaml: unamrshal error : line21
cannot unmarshall !!seq into map [string] interface {}

is my syntax wrong ?

best regards

Interesting, this deploys fine for me

version: ‘2’
services:

urbackup:

  image: uroni/urbackup-server:latest
  container_name: urbackup
  restart: unless-stopped
  environment:
  - PUID=0 # Enter the UID of the user who should own the files here
  - PGID=0 # Enter the GID of the user who should own the files here
  - TZ=Europe/Berlin # Enter your timezone

  volumes:
  - /srv/dev-disk-by-label-Backups/Raid1Backups/database:/var/urbackup
  - /srv/dev-disk-by-label-Backups/Raid1Backups/urbackupfiles:/backups

  # Uncomment the next line if you want to bind-mount the www-folder
  #- /path/to/wwwfolder:/usr/share/urbackup

  network_mode: "host"

  # Activate the following two lines for BTRFS support
  #cap_add:
  # - SYS_ADMIN