跳至主要内容
五折优惠 全部方案,限时优惠。起价 $2.48/mo
Portabase

Portabase

Portabase 简化数据库实例的备份和恢复。通过中央仪表盘和轻量级代理,将 PostgreSQL、MySQL/MariaDB、MongoDB、SQLite、Redis 等加密备份到你偏好的存储。Apache-2.0 许可,GitHub 星标 1,100+。

快速概览

1.1k

GitHub star 数

188

活跃安装数

许可 Apache-2.0 版本 Latest OS Ubuntu Server 24.04 LTS Min RAM 2 GB IP IPV4

活跃安装数为示例数据(预览版);正式版本将接入真实数据。

访问 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

更多自托管内容

相关应用。

Deploy Portabase now. 起价 $2.48/月。