Dockge

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

Accessing Dockge

  • Mở trình duyệt của bạn và truy cập: https://<SERVER_IP>
  • Cảnh báo SSL của trình duyệt (chứng chỉ tự ký) là điều bình thường.
  • Create your admin account on first access.

Các tập tin và thư mục quan trọng

  • Thư mục cài đặt: /opt/dockge
  • Tệp soạn thảo: /opt/dockge/compose.yaml
  • Stacks directory: /opt/stacks
  • Dockge data: /opt/dockge/data
  • Cấu hình Nginx: /etc/nginx/sites-available/dockge
  • Chứng chỉ TLS: /etc/nginx/ssl

Kích hoạt SSL với tên miền

1. Trỏ tên miền của bạn đến địa chỉ IP của máy chủ.

2. Chỉnh sửa cấu hình Nginx và thay thế cả hai server_name <IP>; với tên miền của bạn (<your-domain>) cho cả khối HTTP (cổng 80) và HTTPS (cổng 443):

vim /etc/nginx/sites-available/deockge

3. Cài đặt Certbot:

apt install -y certbot python3-certbot-nginx

4. Chạy lệnh sau để tạo chứng chỉ Let's Encrypt hợp lệ:

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

5. Thay thế đường dẫn SSL trong cấu hình 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. Khởi động lại Nginx để áp dụng các thay đổi:

systemctl restart nginx

7. Mở trình duyệt của bạn và truy cập: https://yourdomain.com

Ghi chú

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

Thông tin ứng dụng