7
submitted 9 months ago by sabreW4K3@lemmy.tf to c/nextcloud@lemmy.ml

I don't know if I'm stupid or if NextCloud's instructions are stupid, it's probably me and subsequently I'm struggling.

For all of my Docker stuff, I move the config directory to my opt folder with a simple

    volumes:
     - /opt/APPNAME/config:/config

And generally have the data on a remote drive like

    - music:/music

volumes: 
  music: 
    driver_opts:
      type: "nfs"
      o: "addr=192.168.X.XXX,nolock,soft,rw"
      device: ":/mnt/HD/Public/Shared Music"

This works perfectly for everything and I'm generally pleased with how things run. But NextCloud is throwing a bunch of words at me and I don't get it. Why can't it be as simple as what I'm already doing? Why do I have to declare

    environment
      - NEXTCLOUD_DATADIR=
      - NEXTCLOUD_MOUNT=

And why is it pointing me to? https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-store-the-filesinstallation-on-a-separate-drive

Which just points you to https://www.guguweb.com/2019/02/07/how-to-move-docker-data-directory-to-another-location-on-ubuntu/

I'm looking at this Docker Compose like...

NextCloudPi was so simple to set up. If not for being stuck on v25, I'd have been happy with it. 🥺

you are viewing a single comment's thread
view the rest of the comments
[-] sabreW4K3@lemmy.tf 1 points 9 months ago

Sorry, this may seem dumb, but what does that mean?

[-] SeeJayEmm@lemmy.procrastinati.org 2 points 9 months ago

I'm rereading your post now and looking at the aio compose file and I'm trying to figure out what exactly you changed.

If you're using aio I don't even see a config volume for you to have altered.

https://github.com/nextcloud/all-in-one/blob/main/compose.yaml

[-] sabreW4K3@lemmy.tf 1 points 9 months ago

The only thing I changed was the environment section and the ports

      ports:
        - 6001:80
        - 6002:443
        - 6003:4443
      environment: 
        - AIO_DIABLE_BACKUP_SECTION=true
        - NEXTCLOUD_DATADIR=/opt/nextcloud
[-] SeeJayEmm@lemmy.procrastinati.org 2 points 9 months ago

I don't think you can move the configs with aio. At least I can't see a way to do it.

There's multiple containers that all need their own separate volumes, none of which are defined in that docker compose, because it's handled programmatically by the master container. That's why it directs you to moving where docker stores it's volumes, if you want to move it all.

That's the trade-off with using aio instead of running and configuring each docker container on your own.

[-] sabreW4K3@lemmy.tf 1 points 9 months ago

Ah, that's why. Thank you so much for explaining it!

[-] SeeJayEmm@lemmy.procrastinati.org 2 points 9 months ago

You moved the config for out of a docker volume and pointed it to a specific directory.

[-] sabreW4K3@lemmy.tf 1 points 9 months ago

That what I would like to do

this post was submitted on 06 Feb 2024
7 points (100.0% liked)

nextcloud

722 readers
1 users here now

Nextcloud is a suite of client-server software for creating and using file hosting services.

https://nextcloud.com

https://github.com/nextcloud

IRC: #nextcloud on libera.chat
Matrix: #nextcloud:matrix.org

Other Nextcloud communities on Lemmy

founded 4 years ago
MODERATORS