Dockge

A fancy, easy-to-use and reactive self-hosted docker compose.yaml stack-oriented manager

Accessing Dockge

  • Otwórz przeglądarkę i wejdź na stronę: https://<SERVER_IP>
  • A browser SSL warning is expected (self-signed certificate)
  • Create your admin account on first access.

Ważne pliki i katalogi

  • Katalog instalacyjny: /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

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/deockge

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/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. Uruchom ponownie Nginx, aby zastosować zmiany:

systemctl restart nginx

7. Otwórz przeglądarkę i przejdź do strony: https://yourdomain.com

Uwagi

  • 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).

Szczegóły aplikacji