Dozzle
Sign in to the Dozzle log viewer with Pocket ID.
Requirements
Section titled “Requirements”- Dozzle
- HTTPS connection to your Pocket ID server
Dozzle supports OIDC natively, so there is no need for a middleware proxy anymore.
Create the client in Pocket ID
Section titled “Create the client in Pocket ID”- In Pocket ID, open Administration → OIDC Clients and click Add OIDC Client.
- Enter a name such as
Dozzleand add the callback URLhttps://dozzle.example.com/api/auth/callback. - Click Create and copy the Client ID and the Client secret. The client secret is only shown once.
- On the client’s Access tab, select the groups that may sign in under Allowed User Groups, or choose All Users.
Configure Dozzle
Section titled “Configure Dozzle”- Add the following to your existing Dozzle compose or
.envfile:environment:DOZZLE_AUTH_PROVIDER: oidc # do not change.DOZZLE_AUTH_OIDC_NAME: pocket-id # this is just a visual control to set the label in the login button, It is not necessary.DOZZLE_AUTH_OIDC_ISSUER: https://id.example.com # base domain only, dozzle will automatically fetch the well-known endpoint.DOZZLE_AUTH_OIDC_CLIENT_IDL: <client-id>DOZZLE_AUTH_OIDC_CLIENT_SECRET: <client-secret> - Dozzle requires a custom claim to allow login.
For each user you want to grant access to Dozzle:
- In Pocket ID, open Administration → Users and click the user.
- Under Custom Claims, add the key
dozzle_roleswith a value such asall,^shell. This grants full access to the user, minus the ability to attach a shell to containers, for security reasons. For the possible values ofdozzle_roles, see the Dozzle docs.
- Restart your Docker Compose stack, and make sure the container is recreated to pick up the environment changes.