mounted my windows drive d but my data files are in my docker container?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

hi @ all, here we go.

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.8)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Windows 11 Pro 24H2, i use docker.desktop to manage my containeres
  • Web server and version (e.g, Apache 2.4.25):
    • ???
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx v2.12.6
  • PHP version (e.g, 8.3):
    • ???
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • from beginning
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • i used a docker-compose.yml file, self configured with chatgpt and google
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

my docker-compose.yml

services:
  # Note: PostgreSQL is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/postgres
  db:
    # Note: Check the recommend version here: https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html#server
    image: postgres:alpine
    environment:
      - POSTGRES_PASSWORD=bazinga

    restart: always
    volumes:
      #- db:/var/lib/postgresql/data:Z
      - /mnt/d/nextcloud/db:/var/lib/postgresql/data
    env_file:
      - db.env

  # Note: Redis is an external service. You can find more information about the configuration here:
  # https://hub.docker.com/_/redis
  redis:
    image: redis:alpine
    restart: always

  app:
    image: nextcloud:apache
    restart: always
    ports:
      - 9111:80
    volumes:
      #- nextcloud:/var/www/html:z
      - /mnt/d/nextcloud:/var/www/html
      # NOTE: The `volumes` config of the `cron` and `app` containers must match
    environment:
      - POSTGRES_HOST=db
      - REDIS_HOST=redis
      - PGPASSWORD=bazinga

    env_file:
      - db.env
    depends_on:
      - db
      - redis

  cron:
    image: nextcloud:apache
    restart: always
    volumes:
      #- nextcloud:/var/www/html:z
      - /mnt/d/nextcloud:/var/www/html
      # NOTE: The `volumes` config of the `cron` and `app` containers must match
    entrypoint: /cron.sh
    depends_on:
      - db
      - redis

#volumes:
#  db:
#  nextcloud:

Summary of the issue you are facing:

i mounted my volume d from windows to save my files in a folder on d. it is in a nextcloud folder and there is a folder called data. i set up the docker-compose file and it use the container folder from the docker system. i deletet everything started it again but everytime it uses the container folder.

that is my folder in the container \wsl.localhost\docker-desktop\mnt\d\nextcloud\data\adminusr\files

and that should use this D:\nextcloud\data

i dont know what i did wrong…

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.