Updating Drivebase
Keep your Drivebase installation up to date with the latest features and security patches
Drivebase regularly releases updates with new features, improvements, and security patches. This guide walks you through the update process and best practices.
Update Notifications
Drivebase automatically checks for updates and notifies you when a new version is available. When logged in, you'll see an "Update available" indicator in the right panel below the version number. Click it to view the latest release notes on GitHub.
Before You Update
Important
Always backup your data before updating to a new version.
Backup Your Database
Create a backup of your PostgreSQL database:
docker exec -t drivebase-postgres pg_dump -U postgres drivebase > backup-$(date +%Y%m%d).sqlIf you're using a managed database service, use their backup tools instead.
Review Release Notes
Before updating, always check the release notes for:
- Breaking changes
- New features
- Required environment variable changes
- Special migration instructions
Updating with Docker
The recommended way to update Drivebase is by pulling the latest Docker image.
Step 1: Pull the Latest Image
docker pull ghcr.io/drivebase/drivebase:latestStep 2: Stop the Current Container
If you're using Docker Compose:
docker compose downOr if running a standalone container:
docker stop drivebase
docker rm drivebaseStep 3: Start with the New Image
Using Docker Compose:
docker compose up -dOr standalone:
docker run -d \
--name drivebase \
-p 3000:3000 \
-e DATABASE_URL="postgresql://..." \
-e JWT_SECRET="your-secret" \
-v drivebase-data:/app/data \
ghcr.io/drivebase/drivebase:latestMake sure to use the same environment variables and volume mounts as before.
Step 4: Verify the Update
-
Check the logs to ensure the application started successfully:
docker compose logs -f -
Database migrations run automatically on startup. Look for migration success messages in the logs.
-
Log in to the web interface and verify the new version number in the right panel.
Version Pinning (Recommended for Production)
Instead of using latest, pin to specific versions in production environments:
services:
drivebase:
image: ghcr.io/drivebase/drivebase:v1.2.0
# ... rest of configurationThis approach:
- Prevents unexpected updates
- Gives you control over when to upgrade
- Makes deployments predictable and repeatable
To update:
- Change the version tag in your
compose.yaml - Run
docker compose up -d
Rolling Back
If you encounter issues after updating:
Step 1: Stop the New Version
docker compose downStep 2: Pull the Previous Version
docker pull ghcr.io/drivebase/drivebase:v1.0.0Step 3: Update Your Configuration
In your docker-compose.yml, change the image tag:
image: ghcr.io/drivebase/drivebase:v1.0.0Step 4: Restore Database (if needed)
If the update included database migrations that caused issues:
docker exec -i drivebase-postgres psql -U postgres drivebase < backup-20260215.sqlStep 5: Start the Previous Version
docker compose up -dUpdate Best Practices
- Test in staging: If possible, test updates in a staging environment before production
- Schedule maintenance windows: Update during low-traffic periods
- Monitor after updates: Watch logs and metrics for 24-48 hours after updating
- Keep backups: Maintain at least 3 recent database backups
- Document your setup: Keep notes on your specific configuration for easier troubleshooting
Checking Your Current Version
You can check your current Drivebase version in several ways:
In the Web Interface
Log in and look at the right panel. Your version is displayed below your email address.
Using Docker
docker exec drivebase bun --versionVia API
Query the metadata endpoint:
curl -H "Authorization: Bearer YOUR_TOKEN" \
https://your-domain.com/graphql \
-d '{"query":"query { appMetadata { version } }"}'Troubleshooting Updates
Update Fails to Start
- Check the logs:
docker compose logs -f - Verify environment variables are set correctly
- Ensure database is accessible
- Check disk space:
docker system df
Database Migration Errors
If migrations fail:
- Check the logs for specific error messages
- Verify database user has required permissions
- Restore from backup and retry
- Check the GitHub issues for known migration problems
Version Mismatch Warnings
If you see version mismatch warnings:
- Clear browser cache and cookies
- Do a hard refresh (Cmd/Ctrl + Shift + R)
- Ensure all services are running the same version
Getting Help
If you encounter issues during updates:
- Check the Troubleshooting guide
- Search GitHub Issues
- Ask in GitHub Discussions
- Join our community chat