Dozzle role
Deploy Dozzle container.
Usage
Configure the role.
vars.yml
# https://hub.docker.com/r/amir20/dozzle
dozzle_image: amir20/dozzle:v7.0.7
dozzle_hostname: logview01
dozzle_description: Log Viewer # default: Dozzle
dozzle_data_dir: /usr/share/dozzle # default: "/usr/share/{{ dozzle_hostname }}"
dozzle_username: logs # default: dozzle
dozzle_password: # default: "{{ vault_dozzle_password }}"
dozzle_base: /logs # default: /
dozzle_filter: "name=keycloak-cd|odoo-cd" # default: ""
And include it in your playbook.
- hosts: dozzle
roles:
- role: dozzle
Docs
Nginx config
Setup this Nginx configuration for the dozzle01
host:
nginx_proxies:
- src_hostname: server.example.com
ssl: true
monitor: false
options: |
include /etc/letsencrypt/proxy-params.conf;
include /etc/nginx/conf.d/proxies/node-exporter.nginx;
include /etc/nginx/conf.d/proxies/cadvisor.nginx;
include /etc/nginx/conf.d/proxies/postgres-exporter.nginx;
locations:
- path: /logs
dest_hostname: dozzle01
dest_port: 8080
options: |
include /etc/letsencrypt/proxy-params.conf;