-
The bugI use Truenas scale 24.10. To experiment I just stopped the docker compose with immich and the disks spinned down as expected. The OS that Immich Server is running onDebian Version of Immich Serverv0.121.0 Version of Immich Mobile Appv0.121.0 Platform with the issue
Your docker-compose.yml contentservices:
immich-server:
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
container_name: immich_server
# user: ${PUID}:${PGID}
restart: unless-stopped
environment:
TZ: Europe/Berlin
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES}
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES}
IMMICH_WORKERS_INCLUDE: "api"
IMMICH_CONFIG_FILE: /config/immich-config.yaml
env_file:
- stack.env
runtime: nvidia
labels:
traefik.enable: true
traefik.http.routers.immich-intern.rule: Host(`immich.home.${DOMAIN}`)
traefik.http.routers.immich-intern.entrypoints: https
traefik.http.routers.immich-intern.service: immich-service
traefik.http.routers.immich-extern.rule: Host(`immich.${DOMAIN}`)
traefik.http.routers.immich-extern.entrypoints: https-external
traefik.http.routers.immich-extern.service: immich-service
traefik.http.services.immich-service.loadbalancer.server.port: 2283
traefik.docker.network: proxy
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload:rw #This is the path where all files you upload with cli go
- ${BASE_PATH}/immich-server:/config
- ${BASE_CONFIG_PATH}/immich/immich_config/immich-config.yaml:/config/immich-config.yaml
#- /mnt/remotes/TRUENAS_Photos/Immich/external_libraries/:/external_libraries NO need to set it if you don't use external libraries
- /etc/localtime:/etc/localtime:ro
ports:
- 2283:2283
depends_on:
- redis
- database
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
networks:
proxy:
immich_internal:
immich-microservice:
container_name: immich_microservice
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
# user: ${PUID}:${PGID}
restart: unless-stopped
environment:
TZ: Europe/Berlin
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_VISIBLE_DEVICES}
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES}
IMMICH_WORKERS_EXCLUDE: "api"
env_file:
- stack.env
runtime: nvidia
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload:rw #This is the path where all files you upload with cli go
- ${BASE_PATH}/immich-server:/config
#- /mnt/remotes/TRUENAS_Photos/Immich/external_libraries/:/external_libraries NO need to set it if you don't use external libraries
- /etc/localtime:/etc/localtime:ro
depends_on:
- redis
- database
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
networks:
proxy:
immich_internal:
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-cuda
# user: ${PUID}:${PGID}
restart: unless-stopped
environment:
TZ: Europe/Berlin
NVIDIA_VISIBLE_DEVICES: ${NVIDIA_GPU}
NVIDIA_DRIVER_CAPABILITIES: ${NVIDIA_DRIVER_CAPABILITIES}
env_file:
- stack.env
networks:
immich_internal:
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities:
- gpu
volumes:
- ${BASE_PATH}/immich-server/machine-learning:/cache
redis:
container_name: immich_redis
image: ${REDIS_IMAGE}
# user: ${PUID}:${PGID}
restart: unless-stopped
networks:
immich_internal:
healthcheck:
test: redis-cli ping || exit 1
database:
container_name: immich_postgres
image: ${POSTGRES_IMAGE}
# user: ${PUID}:${PGID}
restart: unless-stopped
networks:
immich_internal:
environment:
TZ: Europe/Berlin
PUID: ${PUID}
PGID: ${PGID}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: "--data-checksums"
env_file:
- stack.env
volumes:
- ${BASE_PATH}/immich-postgres:/var/lib/postgresql/data
healthcheck:
test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
interval: 5m
start_interval: 30s
start_period: 5m
command:
[
"postgres",
"-c",
"shared_preload_libraries=vectors.so",
"-c",
'search_path="$$user", public, vectors',
"-c",
"logging_collector=on",
"-c",
"max_wal_size=2GB",
"-c",
"shared_buffers=512MB",
"-c",
"wal_compression=on",
]
networks:
proxy:
external: true
immich_internal:
name: immich_internal
## there is a known issue with Traefik: see here https://github.com/immich-app/immich/discussions/437#discussioncomment-3609797 Your .env content# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/ImportantPool/Photos_Immich/
NVIDIA_DRIVER_CAPABILITIES=all # If using NVIDIA GPU
#IMMICH_CONFIG_FILE=/usr/src/app/config
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=v1.121.0
IMMICH_LOG_LEVEL=verbose
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
DB_PASSWORD=blablabla
REDIS_HOSTNAME=redis
REDIS_PORT=6379
REDIS_IMAGE=redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
POSTGRES_IMAGE=tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 Reproduction steps
Relevant log outputNo response Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can disable the docker health checks if you prefer to not have any disk activity. That might help. |
Beta Was this translation helpful? Give feedback.
Every container has a healthcheck. You can look at our current docker compose for an example of how to disable (change false to true)