Deploy Passbolt on VPS: Optimal Password Management Solution for Businesses and Technical Teams
A detailed guide to deploying Passbolt on VPS for secure and efficient password management in enterprises and technical teams. Covers configuration, installation, authentication,...
Image credit: geralt · Pixabay Content License
Introduction to Passbolt and Its Benefits for Businesses
Passbolt is an open-source password management solution designed to secure sensitive information by providing a safe password vault, controlled sharing, and automation for enterprises and technical teams. With integration capabilities for systems like Active Directory, LDAP, and identity management tools, Passbolt helps organizations reduce security risks, improve productivity, and comply with security standards such as ISO 27001 and GDPR.
Deploying Passbolt on a VPS allows businesses to maintain full control over their password data, avoiding reliance on third-party cloud services. This guide walks you through deploying Passbolt on a VPS with optimal configuration, ensuring security, stability, and scalability.
System Requirements and Environment Preparation
To deploy Passbolt on a VPS, you need a server with the following minimum specifications:
- OS: Ubuntu 20.04 LTS or Ubuntu 22.04 LTS
- RAM: at least 4GB (recommended 8GB)
- Storage: 20GB SSD or higher
- Processor: 2 cores or more
- Network: Static IP, open ports (80, 443, 3306)
Before starting, ensure you have:
- Selected a high-RAM VPS (see: High-RAM Cloud VPS for Self-Hosted LLMs & API Gateways)
- Created a root account and set up SSH access
- Registered a domain (preferably with HTTPS) or used Let's Encrypt for SSL certificates
- Updated the system:
sudo apt update && sudo apt upgrade -y
Deploying Passbolt on VPS
We will deploy Passbolt using Docker to simplify installation and management.
Step 1: Install Docker and Docker Compose
sudo apt install -y docker.io docker-compose
sudo usermod -aG docker $USER
newgrp docker
Step 2: Create Directory and Configure Docker Compose
mkdir -p /opt/passbolt && cd /opt/passbolt
wget https://raw.githubusercontent.com/passbolt/passbolt_api/master/docker-compose.yml
Step 3: Create Environment File
cp .env.example .env
nano .env
Modify the environment variables as follows:
PASSBOLT_HOSTNAME=passbolt.yourdomain.comPASSBOLT_SSL=1PASSBOLT_DB_PASSWORD=your_secure_db_password[email protected]
Step 4: Start Passbolt
docker-compose up -d
Authentication and Optimization
After startup, access the web interface at: https://passbolt.yourdomain.com. You will be guided to create the first admin account.
Enable Two-Factor Authentication (2FA)
To enhance security, enable 2FA for all users:
docker-compose exec passbolt php bin/cake passbolt config set security.two_factor_enabled true
Set Up Automated Backups
Passbolt supports database and content folder backups. Use a cron job for daily backups:
0 2 * * * /opt/passbolt/backup.sh
Create backup.sh with the following content:
#!/bin/bash
cd /opt/passbolt
docker-compose exec db sh -c "mysqldump -u root -p$MYSQL_ROOT_PASSWORD passbolt > /tmp/passbolt-backup.sql"
docker cp passbolt_db_1:/var/www/passbolt/files /tmp/passbolt-files-backup
tar -czf /tmp/passbolt-backup-$(date +%Y%m%d).tar.gz /tmp/passbolt-backup.sql /tmp/passbolt-files-backup
Enterprise Password Management Solution
Passbolt enables team creation, access control, and user activity tracking. Key features include:
- Secure password sharing within teams
- Automated alerts for expiring passwords
- Role-based permissions (admin, user, viewer)
- User activity logs
Businesses can integrate Passbolt with tools like Slack, Microsoft Teams, or Jira to receive notifications when password changes occur.
Recovery and Troubleshooting
In case of system failure, check logs using:
docker-compose logs -f passbolt
If the database fails to start, verify:
- MySQL configuration file paths
- Directory permissions
- SSL certificate validity
To restore from a backup, use:
docker-compose exec db sh -c "mysql -u root -p$MYSQL_ROOT_PASSWORD passbolt < /tmp/passbolt-backup.sql"
References
High-RAM Cloud VPS Plans Optimized for AI, Databases & Cache
Enterprise RAID 10 NVMe SSDs, CMC & FPT District 9 uplinks with Anycast Anti-DDoS and 99.99% SLA.
VPS-4E
10% VAT included
- CPU: 4 vCPU
- RAM: 8 GB
- SSD: 50 GB NVMe
