Přístup
- Visit the web interface:
https://IP(replaceIPwith your server’s IP address) - Přijmout varování SSL (vlastnoručně podepsaný certifikát).
- Create the admin account immediately
- Log in and configure database connections
Password Reset
docker exec -it databasus ./main
--new-password="YourNewSecurePassword123"
--email="admin"
Důležité soubory a adresáře
- Application installation:
/opt/databasus - Soubor Docker Compose:
/opt/databasus/docker-compose.yml - Application data:
/opt/databasus/databasus-data/ - Konfigurace webu Nginx:
/etc/nginx/sites-available/databasus - SSL certifikáty:
/etc/nginx/ssl/
Užitečné příkazy
Zkontrolujte stav kontejneru:
docker ps
Restart Databasus:
docker restart databasus
View Databasus logs:
docker logs -f databasus
Check Nginx status:
systemctl status nginx
Restartujte Nginx:
systemctl restart nginx
Povolení SSL s doménou
1. Nasměrujte svou doménu na IP adresu serveru.
2. Upravte konfiguraci Nginx a nahraďte oba server_name <IP>; s vaší doménou (<your-domain>) pro bloky HTTP (port 80) i HTTPS (port 443):
vim /etc/nginx/sites-available/databasus
3. Nainstalujte Certbot:
apt install -y certbot python3-certbot-nginx
4. Spusťte následující příkaz a vygenerujte platný certifikát Let’s Encrypt:
certbot certonly --nginx --non-interactive --agree-tos --email [email protected] -d yourdomain.com
5. Nahraďte cesty SSL v konfiguraci 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. Restartujte Nginx, aby se změny projevily:
systemctl restart nginx
7. Otevřete prohlížeč a přejděte na adresu: https://yourdomain.com