You've already forked docker-compose-nas
mirror of
https://github.com/AdrienPoupa/docker-compose-nas.git
synced 2025-11-23 21:34:42 +02:00
feat(immich): Update to Immich 2
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
services:
|
services:
|
||||||
immich-server:
|
immich-server:
|
||||||
container_name: immich_server
|
container_name: immich_server
|
||||||
image: ghcr.io/immich-app/immich-server:v1.138.0
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
environment:
|
environment:
|
||||||
DB_HOSTNAME: immich_postgres
|
DB_HOSTNAME: immich_postgres
|
||||||
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
|
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
|
||||||
@@ -37,7 +37,7 @@ services:
|
|||||||
|
|
||||||
immich-machine-learning:
|
immich-machine-learning:
|
||||||
container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v1.138.0
|
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||||
volumes:
|
volumes:
|
||||||
- immich-model-cache:/cache
|
- immich-model-cache:/cache
|
||||||
restart: always
|
restart: always
|
||||||
@@ -55,7 +55,7 @@ services:
|
|||||||
|
|
||||||
immich-database:
|
immich-database:
|
||||||
container_name: immich_postgres
|
container_name: immich_postgres
|
||||||
image: ghcr.io/tensorchord/pgvecto-rs:pg14-v0.2.0
|
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
|
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
@@ -63,15 +63,8 @@ services:
|
|||||||
POSTGRES_INITDB_ARGS: "--data-checksums"
|
POSTGRES_INITDB_ARGS: "--data-checksums"
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_ROOT:-.}/immich/postgresql:/var/lib/postgresql/data
|
- ${CONFIG_ROOT:-.}/immich/postgresql:/var/lib/postgresql/data
|
||||||
|
shm_size: 128mb
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
|
||||||
test: >-
|
|
||||||
pg_isready --dbname=immich --username=postgres || exit 1; Chksum="$$(psql --dbname=immich --username=postgres --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: 1m
|
|
||||||
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
|
|
||||||
profiles:
|
profiles:
|
||||||
- immich
|
- immich
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user