Schrodinger's data dir

Hey,

I am started running NC on my ubuntu host using docker. And mounted ./volumes/data:/var/www/html/data . And I see the files… sometimes. During the install the folder gets populated but then turns empty shortly after.
I want to backup the data dir and well I need to hold data.

Here are environmental variables that set it to the hosts user.

    environment:
      - PUID=1001
      - PGID=1001

EDIT: Adding support details

Nextcloud version : latest/arm
Operating system and version of the host : Ubuntu 20.04
Docker: Docker version 20.10.17

Steps to replicate it:

  1. Creating docker-compose.yml
services:
  nextcloud:
    image: nextcloud
    env_file: 
      - ./.env
    networks:
      - internal
      - proxy
    restart: unless-stopped
    # ports:
    #   - chosen port:80
    depends_on:
      - db
      - redis
    labels:
      - "traefik.enable=true"
     ...
    volumes:
      - ./volumes/nextcloud:/var/www/html
      - ./volumes/data:/var/www/html/data
    environment:
      - REDIS_HOST=nextcloud-redis
      - PUID=1001
      - PGID=1001
  1. docker compose up -d

Admin → Logs:
Everything is working fine

Hello there @PovilasID

welcome to the community of Nextcloud.

You started a topic in support category.
Unfortunately you ignored the template and a lot of information to help you is missing.

Please add all necessary information like Nextcloud version, webserver type and version, os version, related log file content.

Without additional information the community members cannot help you.

Regards,
JimmyKater

Hi @PovilasID,
You are missing the required support template. Please fill this form out and edit into your post.

Also check your directory ownership and permissions. This will give us the technical info and logs needed to better help you! Thanks.