diff --git a/immich/docker-compose.yml b/immich/docker-compose.yml index 7feaf8f..15478d7 100644 --- a/immich/docker-compose.yml +++ b/immich/docker-compose.yml @@ -29,8 +29,8 @@ services: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro - #env_file: - # - .env + env_file: + - ${REPO_PREFIX}immich.env #ports: # - '2283:2283' depends_on: @@ -50,8 +50,8 @@ services: # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache - #env_file: - # - .env + env_file: + - ${REPO_PREFIX}immich.env restart: always healthcheck: disable: false diff --git a/immich/example.env b/immich/example.env index 93af657..fb35b15 100644 --- a/immich/example.env +++ b/immich/example.env @@ -1,7 +1,9 @@ TS_HOSTNAME=immich TS_AUTHKEY=tskey-client-nnn-nnn # Change required TS_EXTRA_ARGS=--advertise-tags=tag:container + BASE_DATA_DIR=${BASE_DATA_DIR:-.} # If desired, change data store location +#REPO_PREFIX=${REPO_PREFIX:-immich/} # You can find documentation for all the supported env variables at # https://immich.app/docs/install/environment-variables diff --git a/immich/immich.env b/immich/immich.env new file mode 100644 index 0000000..178d945 --- /dev/null +++ b/immich/immich.env @@ -0,0 +1,11 @@ +BASE_DATA_DIR=${BASE_DATA_DIR:-.} # If desired, change data store location + +# You can find documentation for all the supported env variables at +# https://immich.app/docs/install/environment-variables +UPLOAD_LOCATION=${BASE_DATA_DIR}/immich-data/library +DB_DATA_LOCATION=${BASE_DATA_DIR}/immich-data/postgres +# TZ=Etc/UTC +IMMICH_VERSION=release +DB_PASSWORD=postgres +DB_USERNAME=postgres +DB_DATABASE_NAME=immich