From 45ac8740f063f4155463cc71f6259a78b9585800 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Wed, 8 Jan 2025 08:29:59 -0800 Subject: [PATCH] chore: updates docs to have secrets --- docs/guide/authentication.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/guide/authentication.md b/docs/guide/authentication.md index 5fb35723d6fa..bd512c7d1164 100644 --- a/docs/guide/authentication.md +++ b/docs/guide/authentication.md @@ -61,7 +61,23 @@ users: ::: -Dozzle uses [JWT](https://en.wikipedia.org/wiki/JSON_Web_Token) to generate tokens for authentication. This token is saved in a cookie. +Or using Docker secrets: + +```yaml +services: + dozzle: + image: amir20/dozzle:latest + environment: + - DOZZLE_AUTH_PROVIDER=simple + secrets: + - source: users + target: /data/users.yml + volumes: + - /var/run/docker.sock:/var/run/docker.sock +secrets: + users: + file: users.yml +``` ### Extending Authentication Cookie Lifetime