update readme

This commit is contained in:
2025-07-26 17:25:18 -07:00
parent b81872440f
commit a29ec39252
20 changed files with 335 additions and 95 deletions

50
tasks/photo_refresh.yaml Normal file
View File

@ -0,0 +1,50 @@
---
- name: photo_refresh - set folder variable
set_fact:
- docker_source: "/opt/cosmos/photo_refresh"
- name: photo_refresh - create docker folder
file:
path: "{{ docker_source }}"
state: directory
mode: '0755'
- name: photo_refresh - copy files for docker container
copy:
src: "image_refresh"
dest: "{{ docker_source }}"
recursive: yes
- name: photo_refresh - Build image
docker_image:
name: photo_refresh # Name of the Docker image
source: build
build:
path: /opt/cosmos/photo_refresh # Path to the directory containing your Dockerfile
state: present
tag: latest
###############################################
# Start photo_refresh
###############################################
- name: start photo_refresh
block:
- name: photo_refresh - Copy config
template:
source: docker-compose-node.yaml.j2
dest: "{{ docker_source }}docker-compose.yaml"
mode: 0644
- name: photo_refresh - Start container at 0.0.0.0:8080
shell: "docker-compose -f {{ docker_source }}/docker-compose.yaml up -d"
register: local_index_output
- debug: |
msg="{{ local_index_output.stdout_lines }}"
msg="{{ local_index_output.stderr_lines }}"
...