What is the data location for NextCloud AIO?

Hello everyone,

I just installed NextCloud AIO with Docker and my NextCloud instance is running now. But I am not sure where is the real location (path) of my files stored in NextCloud?

the Docker Compose config:

version: '3'

services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    init: true
    # sig-proxy: false
    container_name: nextcloud-aio-mastercontainer
    restart: always
    ports:
      - "127.0.0.1:8080:8080"
    environment:
      - SKIP_DOMAIN_VALIDATION=true
      - APACHE_PORT=11000
      - APACHE_IP_BINDING=0.0.0.0
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - /data/docker/compose/nextcloud/mnt:/mnt
      - /data/docker/compose/nextcloud/data:/data

volumes:
  nextcloud_aio_mastercontainer:

By default they’re stored in a Docker managed volume nextcloud_aio_nextcloud_data. Docker by default (at least on Linux) stores volumes in /var/lib/docker/volumes.

You can also deploy AIO with a custom location, by using the NEXTCLOUD_DATADIR environment variable[1].

[1] GitHub - nextcloud/all-in-one: The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.

2 Likes

Thanks a lot, I found them at "/var/lib/docker/volumes/nextcloud_aio_nextcloud_data/"