From b6cdffa509c061d4e75fd9c105101b23ae69feef Mon Sep 17 00:00:00 2001 From: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:11:25 +0200 Subject: [PATCH] mount postgres folder to local directory by default (#8443) --- docker/docker-compose.yml | 3 +-- docker/example.env | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 7f27798c5e..9516ea9ca7 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -69,9 +69,8 @@ services: POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - - pgdata:/var/lib/postgresql/data + - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always volumes: - pgdata: model-cache: diff --git a/docker/example.env b/docker/example.env index 40d379f482..234ba3a401 100644 --- a/docker/example.env +++ b/docker/example.env @@ -14,5 +14,6 @@ DB_PASSWORD=postgres DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich +DB_DATA_LOCATION=./postgres REDIS_HOSTNAME=immich_redis