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:
- 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
docker compose up -d
Admin → Logs:
Everything is working fine