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
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
checking now
pasting error
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.
are you inside the folder containing the docker-compose.yml ?
yup
im in immich-app
using my terminal
on a fresh Zorin OS install
is it just a part of the docker compose, or the whole file ?
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
did you down/up the container?
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#
and the error's gone ?
yes, I have no clue why that happend
use ls
to show contents
Can you use the three backticks for code? 😄
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
?My bad, im nearly computer illiterate.
sure
no worry we all learner here
should I use /media/jacob/SSD STORAGE instead?
so your usb drive is mounted at
/media/jacob/SSD
correct?yes
it just shows up in mnt too
So in your docker-compose it should be
/media/jacob/SSD:/media/jacob/SSD
instead of /mnt:/mnt
what about the space
ah there is space
cause its /SSD STORAGE
itll be fine right?
HMMMM
can you rename the mount point to remove the space to save the headache? 😛
yikes, ill rename the disk
YES
HIGH DISK ACTIVITY AND THUMBNAIL GENERATION in the photos tab!
nice!
Thank you for your dedication to helping me out!
no problem man
enjoyyyyy
Will do! Thank you as well vlad.
Do you have a way to mark this as solved?
yea I can do it