Portabase ダッシュボードにアクセス
- ブラウザで開く:
http://<SERVER_IP> - サインアップしてアカウントを作成します。
- 最初に作成されたアカウントが管理者になります。
重要なファイルとディレクトリ
- インストールパス:
/opt/portabase-dashboard - Compose ファイル:
/opt/portabase-dashboard/docker-compose.yml - 環境ファイル:
/opt/portabase-dashboard/.env - Nginx 設定:
/etc/nginx/sites-available/portabase - PostgreSQL ボリューム:
postgres-data - アプリケーションボリューム:
portabase-data
スタックの管理
# 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
ドメインでSSLを有効化する
1. ドメインをサーバーIPに向ける。
2. ファイルを編集 /opt/portabase-dashboard/.env ファイルでドメイン名を設定します: PROJECT_URL=https://yourdomain.com
# Before
PROJECT_URL=http://<SERVER_IP>
# After
PROJECT_URL=https://yourdomain.com
3. スタックを再起動:
cd /opt/portabase-dashboard
docker compose down
docker compose up -d
4. Nginx の設定を編集して置き換える server_name <SERVER_IP>; あなたのドメイン (server_name yourdomain.com;):
vim /etc/nginx/sites-available/portabase
5. Certbotをインストールします:
apt install -y certbot python3-certbot-nginx
6. SSL 証明書を生成:
certbot --nginx -d yourdomain.com
7. Nginx を再起動:
systemctl restart nginx
8. ブラウザを開き、以下の URL にアクセスする: https://yourdomain.com