docker-image: docker.0k.io/nextcloud:18.0.1-myc
data-resources:
  - /var/www/html
  - /var/lib/nextcloud/data
config-resources:
  - /var/www/html/config
provides:
  nextcloud-app:
uses:
  sql-database:
    #constraint: required | recommended | optional
    #auto: pair | summon | none ## default: pair
    constraint: required
    auto: summon
    solves:
      database: "main storage"
  web-proxy:
    #constraint: required | recommended | optional
    #auto: pair | summon | none ## default: pair
    constraint: optional
    auto: pair
    solves:
      proxy: "Public access"
    default-options:
      target: !var-expand ${MASTER_BASE_SERVICE_NAME}:80
  backup:
    constraint: recommended
    auto: pair
    solves:
      backup: "Automatic regular backup"