Skip to content

Commit

Permalink
Update immich again to allow for custom photo location (#411)
Browse files Browse the repository at this point in the history
* add setting for immich
make default location the previous location for anybody that used this previously.

* Update main.yml

Remove hard coded path from `Paths`.
  • Loading branch information
RaneyDazed authored Jan 22, 2025
1 parent 76bc20b commit 5f8faf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions roles/immich/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ immich_name: immich
# Settings
################################

immich_photos_location: "/mnt/unionfs/Media/Photos"
immich_postgres_name: "{{ immich_name }}-postgres"
immich_postgres_docker_env_db: "{{ immich_name }}"
immich_postgres_docker_image_tag: "pg14-v0.2.0-rootless"
Expand All @@ -36,7 +37,7 @@ immich_paths_location: "{{ server_appdata_path }}/{{ immich_paths_folder }}"
immich_paths_folders_list:
- "{{ immich_paths_location }}"
- "{{ immich_paths_location }}/machine-learning"
- /mnt/local/Media/Photos
- "{{ immich_photos_location }}"

################################
# Web
Expand Down Expand Up @@ -113,7 +114,7 @@ immich_docker_commands: "{{ immich_docker_commands_default
# Volumes
immich_docker_volumes_default:
- "{{ immich_paths_location }}:/config"
- "/mnt/unionfs/Media/Photos:/photos"
- "{{ immich_photos_location }}:/photos"
immich_docker_volumes_custom: []
immich_docker_volumes: "{{ immich_docker_volumes_default
+ immich_docker_volumes_custom }}"
Expand Down

0 comments on commit 5f8faf8

Please sign in to comment.