Share a File from nextcloud to my app website

What is your use case?

  1. You would like to access files from website via Nextcloud to be able to change them?
    Then add volume as you wish e.g.
volumes:
    # Format:
    # - /Local/Machine/folder:/container/folder
    - /var/www/html:/nextcloud/myWebSite

After this, via nextcloud Settings → External Storages add /nextcloud/myWebSite as external local storage and that’s it.

  1. You would like to save and manage files in Nextcloud and give an access to content (e.g. pictures) via links to your website?

For Webdav you need to have user/password, but you can simply share folder and then access files via link, e.g.:

Read a bit more about: Прямая ссылка на изображение в общей папке - #6 by gas85 or here: Access a shared folder with a bash script (davfs?) - #3 by gas85