Dostęp
- Visit the web interface:
https://<IP>(replaceIPwith your server’s IP address) - Zaakceptuj ostrzeżenie SSL (certyfikat z podpisem własnym).
- Log in using credentials from
/root/.cloudzy-creds
Environment & Configuration
- Admin authentication is enabled using the
simpleprovider. - User definitions are stored in
/root/dozzle/data/users.yml - Passwords are stored as bcrypt hashes.
- User roles:
all,shell,actions,download,none(default:all). - Docker socket is mounted read/write:
/var/run/docker.sock
Adding a New User
1. Generate bcrypt user:
docker run -it --rm amir20/dozzle generate <username>
--password <password> --email <email> --name "<Full Name>"
--user-roles <roles> --user-filter "<filter>"
2. Backup users.yml:
cp /root/dozzle/data/users.yml /root/dozzle/data/users.yml.bak
3. Append only the user entry under the existing users: block in users.yml — do not repeat users.
4. Validate YAML syntax to ensure the file is correct.
Ważne pliki i katalogi
- Application installation:
/root/dozzle - Plik Docker Compose:
/root/dozzle/docker-compose.yml - Dozzle user database:
/root/dozzle/data/users.yml - Stored credentials:
/root/.cloudzy-creds
Zarządzanie usługami
Lista kontenerów:
docker ps
Start or recreate services:
docker compose -f /root/dozzle/docker-compose.yml up -d
Restart Dozzle:
docker compose -f /root/dozzle/docker-compose.yml restart
Follow logs:
docker compose -f /root/dozzle/docker-compose.yml logs -f
Uruchom ponownie Nginx:
systemctl restart nginx
Włączanie protokołu SSL dla domeny
1. Skieruj swoją domenę na adres IP serwera.
2. Edytuj konfigurację Nginx i zamień oba elementy. server_name <IP>; z Twoją domeną (<your-domain>) zarówno dla bloków HTTP (port 80), jak i HTTPS (port 443):
vim /etc/nginx/sites-available/dozzle
3. Zainstaluj Certbot:
apt install -y certbot python3-certbot-nginx
4. Uruchom poniższe polecenie, aby wygenerować prawidłowy certyfikat Let’s Encrypt:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Zastąp ścieżki SSL w konfiguracji Nginx:
vim /etc/apache2/sites-available/dozzle
# Before:
# ssl_certificate /etc/nginx/ssl/fullchain.pem;
# ssl_certificate_key /etc/nginx/ssl/privkey.pem;
# After:
# ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
6. Uruchom ponownie Nginx, aby zastosować zmiany:
systemctl restart nginx
7. Otwórz przeglądarkę i przejdź do strony: https://yourdomain.com