From acd6eedf40982397b4709eeff70073402f417cd6 Mon Sep 17 00:00:00 2001 From: Eric Dahl Date: Fri, 4 Oct 2024 10:04:29 -0400 Subject: [PATCH] adding version with auth --- templates/compose/dozzle-with-auth.yaml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 templates/compose/dozzle-with-auth.yaml diff --git a/templates/compose/dozzle-with-auth.yaml b/templates/compose/dozzle-with-auth.yaml new file mode 100644 index 000000000..1307e4c81 --- /dev/null +++ b/templates/compose/dozzle-with-auth.yaml @@ -0,0 +1,35 @@ +# documentation: https://dozzle.dev/ +# slogan: Dozzle is a simple and lightweight web UI for Docker logs. +# tags: dozzle,docker,logs,web-ui +# logo: svgs/dozzle.svg +# port: 8080 + +version: "3.8" + +services: + dozzle: + image: amir20/dozzle:latest + container_name: "dozzle" + restart: unless-stopped + environment: + - SERVICE_FQDN_DOZZLE_8080 + - DOZZLE_AUTH_PROVIDER=simple + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - type: bind + source: /data/users.yml + target: /data/users.yml + content: | + users: + # "admin" here is username + admin: + name: "Admin" + # Just sha-256 which can be computed with "echo -n password | shasum -a 256" + password: "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8" + email: me@email.net + healthcheck: + test: ["CMD", "/dozzle", "healthcheck"] + interval: 3s + timeout: 30s + retries: 5 + start_period: 30s \ No newline at end of file