From 33e7ab199bcecb7f740a7b29a06ef0c44ddc2432 Mon Sep 17 00:00:00 2001 From: tavo Date: Sat, 2 Aug 2025 11:55:27 -0600 Subject: [PATCH] portable --- immich/.env.example | 23 ----------------------- immich/docker-compose.yml | 4 ++-- immich/immich.env | 23 +++++++++++++++++++++++ 3 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 immich/immich.env diff --git a/immich/.env.example b/immich/.env.example index 665e936..cd454cc 100644 --- a/immich/.env.example +++ b/immich/.env.example @@ -2,26 +2,3 @@ BASE_DATA_DIR=. TS_HOSTNAME=immich TS_AUTHKEY=tskey-client-nnn-nnn TS_EXTRA_ARGS=--advertise-tags=tag:container - -# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables - -# The location where your uploaded files are stored -UPLOAD_LOCATION=${BASE_DATA_DIR:-.}/immich-data/library - -# The location where your database files are stored. Network shares are not supported for the database -DB_DATA_LOCATION=${BASE_DATA_DIR:-.}/immich-data/postgres - -# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List -# TZ=Etc/UTC - -# The Immich version to use. You can pin this to a specific version like "v1.71.0" -IMMICH_VERSION=release - -# Connection secret for postgres. You should change it to a random password -# Please use only the characters `A-Za-z0-9`, without special characters or spaces -DB_PASSWORD=postgres - -# The values below this line do not need to be changed -################################################################################### -DB_USERNAME=postgres -DB_DATABASE_NAME=immich diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index dcc3316..944c41b 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -30,7 +30,7 @@ services: - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro env_file: - - .env + - ${REPO_IMMICH_PREFIX}immich.env # ports: # - '2283:2283' depends_on: @@ -51,7 +51,7 @@ services: volumes: - model-cache:/cache env_file: - - .env + - ${REPO_IMMICH_PREFIX}immich.env restart: always healthcheck: disable: false diff --git a/immich/immich.env b/immich/immich.env new file mode 100644 index 0000000..01676df --- /dev/null +++ b/immich/immich.env @@ -0,0 +1,23 @@ +BASE_DATA_DIR=${BASE_DATA_DIR:-.} +# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables + +# The location where your uploaded files are stored +UPLOAD_LOCATION=${BASE_DATA_DIR}/immich-data/library + +# The location where your database files are stored. Network shares are not supported for the database +DB_DATA_LOCATION=${BASE_DATA_DIR}/immich-data/postgres + +# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List +# TZ=Etc/UTC + +# The Immich version to use. You can pin this to a specific version like "v1.71.0" +IMMICH_VERSION=release + +# Connection secret for postgres. You should change it to a random password +# Please use only the characters `A-Za-z0-9`, without special characters or spaces +DB_PASSWORD=postgres + +# The values below this line do not need to be changed +################################################################################### +DB_USERNAME=postgres +DB_DATABASE_NAME=immich