Update Immich
This commit is contained in:
@@ -3,13 +3,7 @@ name: photo-collector
|
||||
services:
|
||||
immich:
|
||||
hostname: immich
|
||||
image: ghcr.io/immich-app/immich-server:release
|
||||
command: [ "start.sh", "immich" ]
|
||||
environment:
|
||||
DB_HOSTNAME: immich_postgres
|
||||
DB_USERNAME: postgres
|
||||
DB_PASSWORD: postgres
|
||||
DB_DATABASE_NAME: immich
|
||||
image: ghcr.io/immich-server:release
|
||||
networks:
|
||||
- reverse-proxy
|
||||
- default
|
||||
@@ -23,22 +17,6 @@ services:
|
||||
traefik.enable: true
|
||||
traefik.http.routers.immich.middlewares: authelia@file
|
||||
|
||||
immich-microservices:
|
||||
hostname: immich-microservices
|
||||
image: ghcr.io/immich-app/immich-server:release
|
||||
command: [ "start.sh", "microservices" ]
|
||||
environment:
|
||||
DB_HOSTNAME: immich_postgres
|
||||
DB_USERNAME: postgres
|
||||
DB_PASSWORD: postgres
|
||||
DB_DATABASE_NAME: immich
|
||||
depends_on:
|
||||
- immich_redis
|
||||
- immich_postgres
|
||||
volumes:
|
||||
- ${NASCOMPOSE_DATA?}/media/photos/:/usr/src/app/upload/
|
||||
restart: unless-stopped
|
||||
|
||||
immich-machine-learning:
|
||||
hostname: immich-machine-learning
|
||||
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||
@@ -48,18 +26,27 @@ services:
|
||||
|
||||
immich_redis:
|
||||
hostname: immich_redis
|
||||
image: redis
|
||||
image: redis:6.2-alpine
|
||||
healthcheck:
|
||||
test: redis-cli ping || exit 1
|
||||
restart: unless-stopped
|
||||
|
||||
immich_postgres:
|
||||
hostname: immich_postgres
|
||||
image: tensorchord/pgvecto-rs:pg14-v0.1.11
|
||||
image: tensorchord/pgvecto-rs:pg14-v0.2.0
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: immich
|
||||
POSTGRES_INITDB_ARGS: '--data-checksums'
|
||||
volumes:
|
||||
- ${NASCOMPOSE_SERVICES?}/photo-collector/volumes/immich_postgres_data/:/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"]
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user