Skip to content

Commit c8f10ec

Browse files
committed
fix(immich): Update database environment variables
1 parent 150a0ee commit c8f10ec

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

immich/docker-compose.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,6 @@ services:
6868
container_name: immich_postgres
6969
image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
7070
environment:
71-
DB_HOSTNAME: immich_postgres
72-
DB_PASSWORD: ${IMMICH_DB_PASSWORD}
73-
DB_USERNAME: postgres
74-
DB_DATABASE_NAME: immich
7571
POSTGRES_PASSWORD: ${IMMICH_DB_PASSWORD}
7672
POSTGRES_USER: postgres
7773
POSTGRES_DB: immich
@@ -80,7 +76,7 @@ services:
8076
- ${CONFIG_ROOT:-.}/immich/postgresql:/var/lib/postgresql/data
8177
restart: always
8278
healthcheck:
83-
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
79+
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
8480
interval: 5m
8581
start_interval: 30s
8682
start_period: 5m

0 commit comments

Comments
 (0)