访问 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. 打开浏览器,访问: https://yourdomain.com