How can I change the library location - cms 1.8 ubuntu

I’ve setup a CMS instance using docker on a clean new ubuntu system.
I want to make the library larger so I added a second disk and I’m trying to make the /opt/xibo/shared/cms/library on the second disk.

I mounted the new disk to a new mount point, copied the existing library contents to the new disk, renamed the old library folder to library-orig, and tried linking (ln -s) the new library folder to the old location (/opt/xibo/shared/cms/library).

When I uploaded an object to the library it did not show up in the new library folder but did show up in the renamed folder.

What is the best way to change the library location?

The best way is to customise the docker-compose.yml file (or whichever of the alternatives you’re using) and change the location of the mount for the library.

    cms-web:
        image: xibosignage/xibo-cms:release-1.8.9
        volumes:
            - "./shared/cms/custom:/var/www/cms/custom"
            - "./shared/backup:/var/www/backup"
            - "./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom"
            - "./shared/cms/library:/var/www/cms/library"
            - "./shared/cms/web/userscripts:/var/www/cms/web/userscripts"
        restart: always

That’s how it looks by default, simply change the library line as required. You swap the path before the : to wherever your new folder will be.

    cms-web:
        image: xibosignage/xibo-cms:release-1.8.9
        volumes:
            - "./shared/cms/custom:/var/www/cms/custom"
            - "./shared/backup:/var/www/backup"
            - "./shared/cms/web/theme/custom:/var/www/cms/web/theme/custom"
            - "/path/to/the/library:/var/www/cms/library"
            - "./shared/cms/web/userscripts:/var/www/cms/web/userscripts"
        restart: always

You’ll then need to down/up the containers to apply that. When you upgrade, you’ll need to make the same adjustment to the docker-compose.yml file before upping the containers there too.