diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index 2420e8f..b508853 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -68,10 +68,6 @@ services: container_name: immich_postgres image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: - DB_HOSTNAME: immich_postgres - DB_PASSWORD: ${IMMICH_DB_PASSWORD} - DB_USERNAME: postgres - DB_DATABASE_NAME: immich POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD} POSTGRES_USER: postgres POSTGRES_DB: immich @@ -80,7 +76,7 @@ services: - ${CONFIG_ROOT:-.}/immich/postgresql:/var/lib/postgresql/data restart: always 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 + 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: 30s start_period: 5m