I
Immich•2y ago
jacobthegr8

How do I read every subfolder and all content from /mnt?

Below is my docker-compose.yml that i changed version: "3.8" name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: [ "start.sh", "immich" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /mnt:/mnt:ro env_file: - .env depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: [ "start.sh", "microservices" ] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /mnt:/mnt:ro I dont know how to restart the container to accept these containers. Also, I clicked in the web ui, Create External Library and gave it a path to /mnt and under admininstration, i added /mnt to external path. What do I need to do now? I am trying to set it up to scan my external ssd.
31 Replies
vlad
vlad•2y ago
for changes in the docker-compose.yml to take effect you need to recreate the containers, a simple restart doesn't work. docker compose down && docker compose up -d
jacobthegr8
jacobthegr8OP•2y ago
checking now pasting error
jacobthegr8
jacobthegr8OP•2y ago
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the services key, or omit the version key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
Docker Documentation
Overview
Find the latest recommended version of the Docker Compose file format for defining multi-container applications.
vlad
vlad•2y ago
are you inside the folder containing the docker-compose.yml ?
jacobthegr8
jacobthegr8OP•2y ago
yup im in immich-app using my terminal on a fresh Zorin OS install
vlad
vlad•2y ago
is it just a part of the docker compose, or the whole file ?
jacobthegr8
jacobthegr8OP•2y ago
I just pasted the terminal output when I tried "docker compose down" wait hold one on Ok, now I can see the mount directory in the "docker exec -it immich_microservices /bin/bash" command!! Progress UGH, Now I can mount the drive name but none of the files show up in it when i run dir my bad, I can see the drive but it shows up as empty
vlad
vlad•2y ago
did you down/up the container?
jacobthegr8
jacobthegr8OP•2y ago
yes, ill do it one more time. I am pasting the view of my terminal soon docker exec -it immich_microservices /bin/bash root@e7a7e606365b:/usr/src/app# cd .. root@e7a7e606365b:/usr/src# cd .. root@e7a7e606365b:/usr# cd .. root@e7a7e606365b:/# dir LICENSE boot etc lib lib64 licenses mnt proc run srv tmp var bin dev home lib32 libx32 media opt root sbin sys usr root@e7a7e606365b:/# cd mnt root@e7a7e606365b:/mnt# dir usb-SABRENT_SABRENT_DB9876543214E-0:0-part1 root@e7a7e606365b:/mnt# dir usb-SABRENT_SABRENT_DB9876543214E-0:0-part1 root@e7a7e606365b:/mnt# cd usb-SABRENT_SABRENT_DB9876543214E-0:0-part1 root@e7a7e606365b:/mnt/usb-SABRENT_SABRENT_DB9876543214E-0:0-part1# dur bash: dur: command not found root@e7a7e606365b:/mnt/usb-SABRENT_SABRENT_DB9876543214E-0:0-part1# dir root@e7a7e606365b:/mnt/usb-SABRENT_SABRENT_DB9876543214E-0:0-part1# dir root@e7a7e606365b:/mnt/usb-SABRENT_SABRENT_DB9876543214E-0:0-part1#
vlad
vlad•2y ago
and the error's gone ?
jacobthegr8
jacobthegr8OP•2y ago
yes, I have no clue why that happend
vlad
vlad•2y ago
use ls to show contents
Alex Tran
Alex Tran•2y ago
Can you use the three backticks for code? 😄
```
```
jacobthegr8
jacobthegr8OP•2y ago
root@e7a7e606365b:/mnt# ls
usb-SABRENT_SABRENT_DB9876543214E-0:0-part1
root@e7a7e606365b:/mnt# ls
usb-SABRENT_SABRENT_DB9876543214E-0:0-part1
Alex Tran
Alex Tran•2y ago
damnit before and after the code too I can see you are mounting /mnt from the host backtick is next to number 1 key on your keyboard nice from your host, outside of the container can you do lsblk ?
jacobthegr8
jacobthegr8OP•2y ago
My bad, im nearly computer illiterate. sure
Alex Tran
Alex Tran•2y ago
no worry we all learner here
jacobthegr8
jacobthegr8OP•2y ago
jacob@jacob-ZorinServer:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /media/jacob/SSD STORAGE
nvme0n1 259:0 0 477G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 476.4G 0 part /
jacob@jacob-ZorinServer:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─sda1 8:1 0 931.5G 0 part /media/jacob/SSD STORAGE
nvme0n1 259:0 0 477G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
└─nvme0n1p2 259:2 0 476.4G 0 part /
should I use /media/jacob/SSD STORAGE instead?
Alex Tran
Alex Tran•2y ago
so your usb drive is mounted at /media/jacob/SSD correct?
jacobthegr8
jacobthegr8OP•2y ago
yes it just shows up in mnt too
Alex Tran
Alex Tran•2y ago
So in your docker-compose it should be /media/jacob/SSD:/media/jacob/SSD instead of /mnt:/mnt
jacobthegr8
jacobthegr8OP•2y ago
what about the space
Alex Tran
Alex Tran•2y ago
ah there is space
jacobthegr8
jacobthegr8OP•2y ago
cause its /SSD STORAGE itll be fine right?
Alex Tran
Alex Tran•2y ago
HMMMM can you rename the mount point to remove the space to save the headache? 😛
jacobthegr8
jacobthegr8OP•2y ago
yikes, ill rename the disk YES HIGH DISK ACTIVITY AND THUMBNAIL GENERATION in the photos tab!
Alex Tran
Alex Tran•2y ago
nice!
jacobthegr8
jacobthegr8OP•2y ago
Thank you for your dedication to helping me out!
Alex Tran
Alex Tran•2y ago
no problem man enjoyyyyy
jacobthegr8
jacobthegr8OP•2y ago
Will do! Thank you as well vlad. Do you have a way to mark this as solved?
Alex Tran
Alex Tran•2y ago
yea I can do it

Did you find this page helpful?