From 9f0a9eb4b225ca81184158d3d7b202ddb22a626d Mon Sep 17 00:00:00 2001 From: Administrator Date: Tue, 21 Oct 2025 10:23:55 +0000 Subject: [PATCH] Update 2 files - /roles/dashy/tasks/main.yml - /roles/dashy/templates/docker-compose.yml.j2 --- roles/dashy/tasks/main.yml | 18 +----------------- roles/dashy/templates/docker-compose.yml.j2 | 19 ++++++++++++------- 2 files changed, 13 insertions(+), 24 deletions(-) diff --git a/roles/dashy/tasks/main.yml b/roles/dashy/tasks/main.yml index 466769a..081f6a9 100644 --- a/roles/dashy/tasks/main.yml +++ b/roles/dashy/tasks/main.yml @@ -20,12 +20,6 @@ dest: "{{ dashy_base_dir }}/docker-compose.yml" mode: 0644 -- name: Stop and remove Heimdall container if exists - shell: | - cd {{ heimdall_base_dir }} && docker compose down - ignore_errors: yes - when: "'gateway' in group_names" - - name: Start Dashy container shell: | cd {{ dashy_base_dir }} @@ -44,14 +38,4 @@ - name: Show Dashy status debug: - var: dashy_status.stdout - -- name: Verify Dashy is accessible - uri: - url: "http://{{ ansible_host }}:{{ dashy_port }}" - status_code: 200 - timeout: 30 - register: dashy_accessible - until: dashy_accessible.status == 200 - retries: 5 - delay: 5 \ No newline at end of file + var: dashy_status.stdout \ No newline at end of file diff --git a/roles/dashy/templates/docker-compose.yml.j2 b/roles/dashy/templates/docker-compose.yml.j2 index e417dbf..91c4854 100644 --- a/roles/dashy/templates/docker-compose.yml.j2 +++ b/roles/dashy/templates/docker-compose.yml.j2 @@ -1,14 +1,19 @@ -version: '3.8' services: dashy: - image: lscr.io/linuxserver/dashy:latest + image: lissy93/dashy container_name: dashy restart: unless-stopped ports: - - "{{ dashy_port }}:80" + - "{{ dashy_port }}:8080" volumes: - - {{ dashy_config_dir }}:/app/user-data + - {{ dashy_config_dir }}/conf.yml:/app/user-data/conf.yml environment: - - PUID=1000 - - PGID=1000 - - TZ={{ timezone }} \ No newline at end of file + - NODE_ENV=production + - UID=1000 + - GID=1000 + healthcheck: + test: ['CMD', 'node', '/app/services/healthcheck'] + interval: 1m30s + timeout: 10s + retries: 3 + start_period: 40s \ No newline at end of file