pulse/tasks/pulse.yaml
Simon Cornet 48b28d6442 feat: use pull-through cache for Docker Hub images
Replace docker.io references with cr.simoncor.net/dockerhub
pull-through cache. Official images now use explicit library/
namespace for cache compatibility.
2026-05-08 14:42:38 +02:00

51 lines
987 B
YAML

---
# create pulse data directory
- name: "create pulse data directory"
ansible.builtin.file:
path: "/mnt/pulse/data"
state: "directory"
owner: "root"
group: "root"
mode: "0775"
# docker pull pulse
- name: "run pulse"
community.docker.docker_container:
# container_default_behavior
auto_remove: "no"
container_default_behavior: "no_defaults"
detach: "yes"
init: "no"
interactive: "no"
log_driver: "json-file"
log_options:
max-size: "5m"
max-file: "3"
memory: "0"
paused: "no"
privileged: "no"
pull: "always"
read_only: "no"
state: "started"
tty: "no"
# pulse
name: "pulse"
image: "cr.simoncor.net/dockerhub/rcourtman/pulse:4.36.2"
image_name_mismatch: "recreate"
network_mode: "host"
restart_policy: "unless-stopped"
volumes:
- "/mnt/pulse/data:/data"
env:
# pulse
CONNECTION_TIMEOUT: "60"
# global
TZ: "{{ timezone }}"