2024-09-09 22:37:51 +10:00
|
|
|
---
|
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/dozzle"
|
|
|
|
- "{{ data_folder }}/dozzle/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
|
|
|
|
- name: Create the dozzle container
|
|
|
|
docker_container:
|
|
|
|
name: dozzle
|
2024-10-29 03:01:23 +10:00
|
|
|
image: amir20/dozzle:v8.7.1
|
2024-09-09 22:37:51 +10:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
recreate: true
|
|
|
|
networks:
|
|
|
|
- name: proxy
|
|
|
|
volumes:
|
|
|
|
- /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"
|
|
|
|
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"
|