Skip to content

Commit

Permalink
Parameterize container and image name and version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsjordan-eng committed Aug 17, 2024
1 parent a0facdd commit f790955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/photoprism/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
photoprism_image_version: "latest"
4 changes: 2 additions & 2 deletions roles/photoprism/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f790955

Please sign in to comment.