Accessing Dockge
- Apri il browser e visita:
https://<SERVER_IP> - A browser SSL warning is expected (self-signed certificate)
- Create your admin account on first access.
File e directory importanti
- Directory di installazione:
/opt/dockge - Compose file:
/opt/dockge/compose.yaml - Stacks directory:
/opt/stacks - Dockge data:
/opt/dockge/data - Nginx config:
/etc/nginx/sites-available/dockge - TLS certificates:
/etc/nginx/ssl
Abilitazione SSL con un dominio
1. Indirizza il tuo dominio all'IP del server.
2. Modifica la configurazione Nginx e sostituisci entrambi server_name <IP>; con il tuo dominio (<your-domain>) sia per i blocchi HTTP (porta 80) che HTTPS (porta 443):
vim /etc/nginx/sites-available/deockge
3. Installa Certbot:
apt install -y certbot python3-certbot-nginx
4. Run the following command to generate a valid Let’s Encrypt certificate:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Sostituire i percorsi SSL nella configurazione Nginx:
vim /etc/nginx/sites-available/dockge
# 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. Riavvia Nginx per applicare le modifiche:
systemctl restart nginx
7. Apri il browser e visita: https://yourdomain.com
Note
- Dockge uses
/var/run/docker.sockto control Docker. - Nginx is configured with HTTPS and redirects HTTP → HTTPS.
- Only Dockge UI uses HTTPS; other apps use
http://<IP>:<PORT>(no auto HTTPS).