From 8d4be87e937f419b3fe3bfc7998e53f8437c1e6b Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Sat, 16 Nov 2024 22:21:30 +1000 Subject: [PATCH] feat: add dozzle agent for omada --- main.yml | 4 ++++ tasks/dozzle-agent.yml | 11 +++++++++++ tasks/dozzle.yml | 4 ++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 tasks/dozzle-agent.yml diff --git a/main.yml b/main.yml index 497b03c..fd5b642 100644 --- a/main.yml +++ b/main.yml @@ -145,6 +145,10 @@ src: truenas.comprofix.xyz:/mnt/datapool/docker tags: nfs_install tasks: + - name: Deploy Dozzle Agent + import_tasks: tasks/dozzle-agent.yml + tags: dozzle_agent + - name: Deploy Omada import_tasks: tasks/omada.yml tags: omada_container_install diff --git a/tasks/dozzle-agent.yml b/tasks/dozzle-agent.yml new file mode 100644 index 0000000..1e55417 --- /dev/null +++ b/tasks/dozzle-agent.yml @@ -0,0 +1,11 @@ +- name: Create the dozzle agent container + docker_container: + name: dozzle-agent + image: amir20/dozzle:v8.7.4 + command: agent + restart_policy: unless-stopped + recreate: true + volumes: + - /var/run/docker.sock:/var/run/docker.sock:ro + ports: + - 7007:7007 diff --git a/tasks/dozzle.yml b/tasks/dozzle.yml index 70e821b..2bf936e 100644 --- a/tasks/dozzle.yml +++ b/tasks/dozzle.yml @@ -19,11 +19,11 @@ - /var/run/docker.sock:/var/run/docker.sock env: DOZZLE_LEVEL: "trace" - DOZZLE_REMOTE_HOST: "tcp://omada.comprofix.xyz:2375,tcp://vps02.comprofix.com:2375" + DOZZLE_REMOTE_AGENT: "omada-lxc.comprofix.xyz:7007" labels: traefik.enable: "true" traefik.http.routers.dozzle.rule: "Host(`dozzle.comprofix.xyz`)" traefik.http.routers.dozzle.entrypoints: "https" traefik.http.routers.dozzle.tls: "true" traefik.http.services.dozzle.loadbalancer.server.port: "8080" - traefik.http.services.dozzle.loadbalancer.server.scheme: "http" \ No newline at end of file + traefik.http.services.dozzle.loadbalancer.server.scheme: "http"