Dockge

Un gestionnaire de stack Docker Compose.yaml auto-hébergé, élégant, facile à utiliser et réactif

Accessing Dockge

  • Ouvrez votre navigateur et rendez-vous sur : https://<SERVER_IP>
  • Un avertissement SSL du navigateur est à prévoir (certificat auto-signé)
  • Create your admin account on first access.

Fichiers et répertoires importants

  • Répertoire d'installation : /opt/dockge
  • Créer un fichier : /opt/dockge/compose.yaml
  • Stacks directory: /opt/stacks
  • Dockge data: /opt/dockge/data
  • Configuration Nginx : /etc/nginx/sites-available/dockge
  • Certificats TLS : /etc/nginx/ssl

Activation du protocole SSL avec un domaine

1. Pointez votre domaine vers l'adresse IP du serveur.

2. Modifiez la configuration Nginx et remplacez les deux server_name <IP>; avec votre domaine (<your-domain>) pour les blocs HTTP (port 80) et HTTPS (port 443) :

vim /etc/nginx/sites-available/deockge

3. Installez Certbot :

apt install -y certbot python3-certbot-nginx

4. Exécutez la commande suivante pour générer un certificat Let’s Encrypt valide :

certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com

5. Remplacer les chemins SSL dans la configuration 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. Redémarrez Nginx pour appliquer les modifications :

systemctl restart nginx

7. Ouvrez votre navigateur et rendez-vous sur : https://yourdomain.com

Remarques

  • Dockge uses /var/run/docker.sock to 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).

Détails de la demande