Cơ sở dữ liệu

Công cụ sao lưu mã nguồn mở dành cho PostgreSQL, MySQL & MongoDB với chức năng lưu trữ và thông báo.

Truy cập

  • Visit the web interface: https://IP (replace IP with your server’s IP address)
  • Chấp nhận cảnh báo SSL (chứng chỉ tự ký).
  • Create the admin account immediately
  • Log in and configure database connections

Password Reset

docker exec -it databasus ./main 
  --new-password="YourNewSecurePassword123" 
  --email="admin"

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

  • Cài đặt ứng dụng: /opt/databasus
  • Tệp Docker Compose: /opt/databasus/docker-compose.yml
  • Application data: /opt/databasus/databasus-data/
  • Cấu hình trang web Nginx: /etc/nginx/sites-available/databasus
  • Chứng chỉ SSL: /etc/nginx/ssl/

Các lệnh hữu ích

Kiểm tra trạng thái container:

docker ps

Restart Databasus:

docker restart databasus

View Databasus logs:

docker logs -f databasus

Check Nginx status:

systemctl status nginx

Khởi động lại Nginx:

systemctl restart nginx

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

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/apache2/sites-available/databasus
# 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

Thông tin ứng dụng