Dostęp do panelu Portabase
- Otwórz w przeglądarce:
http://<SERVER_IP> - Zarejestruj się i utwórz konto.
- Pierwsze utworzone konto zostaje administratorem.
Ważne pliki i katalogi
- Ścieżka instalacji:
/opt/portabase-dashboard - Plik Compose:
/opt/portabase-dashboard/docker-compose.yml - Plik środowiskowy:
/opt/portabase-dashboard/.env - Konfiguracja Nginx:
/etc/nginx/sites-available/portabase - Wolumen PostgreSQL:
postgres-data - Wolumen aplikacji:
portabase-data
Zarządzanie stosem
# Go to installation directory (where docker-compose.yml is located)
cd /opt/portabase-dashboard
# Show running containers and their status
docker compose ps
# View live logs (useful for debugging issues)
docker compose logs -f
# Restart all services without recreating containers
docker compose restart
# Stop and remove containers (data volumes remain unless explicitly removed)
docker compose down
# Start services in detached mode (background)
docker compose up -d
Włączanie SSL z domeną
1. Skieruj swoją domenę na IP serwera.
2. Edytuj plik /opt/portabase-dashboard/.env plik, aby ustawić nazwę domeny: PROJECT_URL=https://yourdomain.com
# Before
PROJECT_URL=http://<SERVER_IP>
# After
PROJECT_URL=https://yourdomain.com
3. Zrestartuj stack:
cd /opt/portabase-dashboard
docker compose down
docker compose up -d
4. Edytuj konfiguracje Nginx i zamień server_name <SERVER_IP>; z Twoją domeną (server_name yourdomain.com;):
vim /etc/nginx/sites-available/portabase
5. Zainstaluj Certbot:
apt install -y certbot python3-certbot-nginx
6. Wygeneruj certyfikat SSL:
certbot --nginx -d yourdomain.com
7. Zrestartuj Nginx:
systemctl restart nginx
8. Otwórz przeglądarkę i wejdź pod adres: https://yourdomain.com