Skip to main content
Protect your container logs with password authentication using Dozzle. This inline Docker Compose configuration requires no external files or volume mounts.

Implementation Steps

  1. Generate Authentication Credentials On your local machine, generate a Dozzle user configuration with escaped dollar signs for Docker Compose:
    This creates login credentials (username: admin, password: secret) with automatic $ escaping for Docker Compose. The output is ready to paste directly into your configuration.
  2. Configure Dozzle in Docker Compose Copy the output from step 1 and paste it into your docker-compose.yml:
    The configs directive embeds the authentication data directly in docker-compose.yml without needing external files or additional containers.
  3. Access Protected Logs Once deployed on Phala Cloud, Dozzle will be accessible at:
    Replace {app-id} with your App ID and {node-name} with your deployment target. You can also find the endpoint in your CVM’s View Details > Network > Endpoint section. Log in with the secrets (or whatever you set in step 1):
    • Username: admin
    • Password: secret
    Only authorized users with valid credentials can view your container logs.
For production environments with advanced requirements, consider using the Loki and Grafana stack for centralized log aggregation, querying, and visualization.