diff --git a/roles/photoprism/defaults/main.yml b/roles/photoprism/defaults/main.yml index cfa1aa2b1..f7b760079 100644 --- a/roles/photoprism/defaults/main.yml +++ b/roles/photoprism/defaults/main.yml @@ -4,3 +4,6 @@ photoprism_photos_directory: "{{ photos_root }}" photoprism_port: "2342" photoprism_hostname: "photoprism" photoprism_available_externally: false +photoprism_container_name: "photoprism" +photoprism_image_name: "photoprism" +photoprism_image_version: "latest" diff --git a/roles/photoprism/tasks/main.yml b/roles/photoprism/tasks/main.yml index 9fcbe9eef..fbfbdf01c 100644 --- a/roles/photoprism/tasks/main.yml +++ b/roles/photoprism/tasks/main.yml @@ -10,8 +10,8 @@ - name: Install Docker container docker_container: - name: photoprism - image: photoprism/photoprism + name: "{{ photoprism }}" + image: "{{ photoprism_image_name }}/{{ photoprism_image_version }}" pull: true ports: - "{{ photoprism_port }}:2342"