Back to articles
Technology Insight

Self-Hosting Enterprise-Grade Password Management: Deploying Military-Grade Passbolt on Docker Swarm

June 3, 2026

Introduction: The Enterprise Password Dilemma

In the modern corporate ecosystem, credential management is no longer just an IT convenience—it is a critical pillar of cybersecurity compliance. With the proliferation of SaaS tools, cloud infrastructure, and remote teams, businesses handle thousands of sensitive passwords daily. Relying on fragmented, unencrypted, or cloud-hosted third-party solutions can expose organizations to severe data breaches and regulatory penalties.

For enterprises seeking absolute control over their data, self-hosting is the gold standard. By hosting your own credential repository, you ensure that sensitive data never leaves your infrastructure. This guide explores how to build a resilient, military-grade enterprise password management platform using Passbolt, deployed across a highly available Docker Swarm cluster.

---

Why Passbolt? Open-Source and Military-Grade Security

Passbolt stands out in the crowded password management landscape because it was built from the ground up for teams and businesses. Unlike consumer-focused alternatives, Passbolt integrates deeply with enterprise workflows while maintaining a strict privacy-by-design philosophy.

### The Power of Asymmetric GPG Encryption

At the core of Passbolt’s security model is OpenGPG (GNU Privacy Guard). Passbolt utilizes a unique asymmetric encryption system that ensures true end-to-end security:

  • Server-Blind Architecture: The server acts merely as a blind relay. It stores encrypted blobs but never has access to the master keys or the plain-text passwords.
  • Dual-Key Authentication: Every user generates a public/private key pair. The private key is stored securely in the user's browser extension (encrypted with their passphrase), while the public key is stored on the server.
  • Granular Sharing: Passwords can be securely shared with specific users or teams without ever exposing the raw secret to unauthorized personnel or the hosting server itself.
Passbolt’s security model guarantees that even if your server infrastructure is fully compromised, the attackers cannot decrypt your stored passwords without the users' private keys and passphrases.
---

Architecting for High Availability with Docker Swarm

Deploying an enterprise password manager on a single server introduces a single point of failure (SPOF). If the server goes down, your entire team loses access to critical systems. To mitigate this risk, we leverage Docker Swarm to build a resilient, load-balanced, and highly available cluster.

### Key Benefits of Docker Swarm for Passbolt
  • High Availability (HA): Automatically redistributes Passbolt containers if a physical manager or worker node fails.
  • Seamless Scaling: Scale the Passbolt web application instances horizontally with a single command to handle spikes in traffic.
  • Declarative State Enforcement: Docker Swarm continuously monitors the cluster status to ensure the defined number of replicas are always running.
  • Integrated Load Balancing: The Swarm ingress network routes incoming requests smoothly across all healthy container instances.
---

Prerequisites and Environment Setup

Before initiating the deployment, ensure your infrastructure meets the following technical requirements:

  1. A Provisioned Docker Swarm Cluster: At least 3 nodes (1 Manager, 2 Workers) for true fault tolerance.
  2. Shared Storage Solution: A persistent volume solution like GlusterFS, NFS, or Ceph to synchronize Passbolt avatars, GPG keys, and database back-ups across nodes.
  3. Domain and SSL Certificates: A valid FQDN (e.g., passbolt.yourcompany.com) with Let's Encrypt or corporate SSL certificates terminated at a reverse proxy (like Traefik or Nginx).
  4. SMTP Server: Access to an enterprise mail relay (SendGrid, Mailgun, or internal Exchange) for user invitations and security notifications.
---

Step-by-Step Deployment Guide

### 1. Preparing the Persistent Directories

Log into your Swarm Manager node and create the necessary directories on your shared storage mount point (e.g., /mnt/shared/passbolt):

Ensure that the permissions are set correctly so the Docker containers can read and write to these volumes, particularly for the database storage and GPG key configurations.

### 2. Crafting the Docker Compose Stack File

Create a deployment file named passbolt-stack.yml. This file defines the Passbolt application web service, the PostgreSQL database engine, and their respective configurations.

Within this configuration, you will define service scaling, resource constraints, health checks, and secrets. It is critical to utilize Docker Secrets for sensitive environment variables such as DATASOURCES_DEFAULT_PASSWORD and database root credentials rather than hardcoding them in plain text.

### 3. Deploying the Stack to the Swarm Cluster

Execute the following command on the Swarm Manager to launch your enterprise password manager platform:

docker stack deploy -c passbolt-stack.yml passbolt

Docker Swarm will provision the overlay network, pull the official enterprise-ready Passbolt images, mount the shared storage volumes, and distribute the containers optimally across your active infrastructure nodes.

---

Post-Deployment & Enterprise Hardening

Once the services are active, navigate to your configured domain to complete the web-based initialization wizard. However, a production deployment requires additional security hardening:

### Implementing Database Backups

Automate daily, encrypted backups of your PostgreSQL database and the server’s GPG keys. Store these backups in a separate, isolated offsite location or cloud bucket. Test recovery procedures quarterly to ensure business continuity.

### Enforcing Multi-Factor Authentication (MFA)

While Passbolt's key-based authentication is exceptionally secure, enabling Multi-Factor Authentication (MFA) adds a vital secondary layer of defense. Passbolt supports TOTP (Google Authenticator, Duo, YubiKey) and hardware tokens out of the box. Enforce MFA at the organizational level via the admin dashboard.

### Continuous Monitoring and Auditing

Integrate Passbolt’s container logs into your centralized SIEM (Security Information and Event Management) system. Monitor for unusual login patterns, failed administrative actions, or bulk credential access to proactively thwart insider threats.

---

Conclusion

By self-hosting Passbolt on Docker Swarm, your enterprise achieves the ultimate balance between uncompromising, military-grade security and high-availability operational resilience. You eliminate third-party trust risks, comply with strict data sovereignty laws, and provide your team with an efficient, secure collaborative platform. Take control of your corporate secrets today by transitioning to a self-managed, containerized credential infrastructure.

Self-Hosting Enterprise-Grade Password Management: Deploying Military-Grade Passbolt on Docker Swarm | DPTCloud