From 61b6823966a1fb8dcfdc4618c5d2cee838946fa8 Mon Sep 17 00:00:00 2001 From: dado Date: Sat, 21 Jun 2025 12:06:22 +0200 Subject: [PATCH] container exclusion from watchtower monitoring --- immich/docker-compose.yml | 19 +++++++------------ watchtower/docker-compose.yml | 2 ++ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index 074ffc4..7a2e7a8 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -1,4 +1,5 @@ name: immich + services: immich-server: container_name: immich_server @@ -32,7 +33,7 @@ services: # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable mem_limit: 1.5g - cpus: 0.2 # al max 20% cpu + cpus: 0.3 volumes: - model-cache:/cache env_file: @@ -45,14 +46,17 @@ services: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 mem_limit: 128m + labels: + - "com.centurylinklabs.watchtower.enable=false" + # https://containrrr.dev/watchtower/container-selection/ + # https://github.com/containrrr/watchtower/discussions/1697 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres - image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 -# image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 + image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 mem_limit: 512m environment: POSTGRES_PASSWORD: ${DB_PASSWORD} @@ -62,15 +66,6 @@ services: volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data -# healthcheck: -# test: >- -# pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --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 -# restart: always volumes: model-cache: \ No newline at end of file diff --git a/watchtower/docker-compose.yml b/watchtower/docker-compose.yml index ffce362..4e46336 100644 --- a/watchtower/docker-compose.yml +++ b/watchtower/docker-compose.yml @@ -1,4 +1,6 @@ # https://linuxiac.com/watchtower-automatically-update-docker-container-images/ +# https://containrrr.dev/watchtower/container-selection/ +# https://github.com/containrrr/watchtower/discussions/1697 services: watchtower: