Databasus

Open-source backup tool for PostgreSQL, MySQL & MongoDB with storage and notifications.

Dostęp

  • Visit the web interface: https://IP (replace IP with your server’s IP address)
  • Zaakceptuj ostrzeżenie SSL (certyfikat z podpisem własnym).
  • Create the admin account immediately
  • Log in and configure database connections

Password Reset

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

Ważne pliki i katalogi

  • Application installation: /opt/databasus
  • Plik Docker Compose: /opt/databasus/docker-compose.yml
  • Application data: /opt/databasus/databasus-data/
  • Konfiguracja witryny Nginx: /etc/nginx/sites-available/databasus
  • Certyfikaty SSL: /etc/nginx/ssl/

Przydatne polecenia

Sprawdź stan kontenera:

docker ps

Restart Databasus:

docker restart databasus

View Databasus logs:

docker logs -f databasus

Check Nginx status:

systemctl status nginx

Uruchom ponownie Nginx:

systemctl restart nginx

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

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

systemctl restart nginx

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

Szczegóły aplikacji