A professional command-line orchestrator for quickly standing up Liferay Portal and DXP environments using Docker Compose.
Check out our Video Showcase to see short demonstrations of LDM in action, including Fast Provisioning, Cloud Hydration, and instant Snapshots & Restoration!
The standalone binary is the recommended way to use LDM. Copy and run the block specific to your environment:
sudo curl -L https://github.com/peterrichards-lr/liferay-docker-manager/releases/latest/download/ldm-macos-arm64 -o /usr/local/bin/ldm
sudo chmod +x /usr/local/bin/ldmsudo curl -L https://github.com/peterrichards-lr/liferay-docker-manager/releases/latest/download/ldm-macos-x86_64 -o /usr/local/bin/ldm
sudo chmod +x /usr/local/bin/ldmsudo curl -L https://github.com/peterrichards-lr/liferay-docker-manager/releases/latest/download/ldm-linux -o /usr/local/bin/ldm
sudo chmod +x /usr/local/bin/ldmFor detailed setup on Windows (including PowerShell instructions), see the Full Installation Guide.
Once installed, bootstrap or run your stacks instantly:
# 1. THE CONFIDENCE BOOSTER: Run Liferay with pre-configured samples
ldm run my-sample-project --samples
# 2. THE VANILLA FLOW: Run a fresh vanilla Liferay instance (LTS release)
ldm run my-vanilla-project --vanilla --tag 2026.q1.7-lts
# 3. THE DEVELOPER FLOW: Link a local workspace and start monitoring
ldm link /path/to/workspace my-project
# 4. THE PREDEFINED QUICKSTART: Bootstrap an accelerator demo stack
ldm quickstart aica
# 5. THE TIME MACHINE: Take a snapshot of your database and volumes, and restore them later
ldm snapshot my-project
ldm restore my-project
# 6. THE CLONE FLOW: Clone and setup a remote Git workspace repository
ldm clone https://github.com/my-org/my-workspace.git my-project
# 7. THE PORTABLE PACKAGE: Export and Import compiled project snapshots (.ldmp)
ldm package my-project
ldm import /path/to/my-project.ldmpNote
Headless & Seeding Prompt Behaviors:
- By default, LDM checks for a cached pre-warmed database seed. If not cached, it will prompt you interactively to download it.
- CI/CD / Headless Scripts: To prevent interactive prompts from blocking headless environments, pass
-y/--yes/--non-interactiveto automatically confirm seed downloads, or pass--vanilla/
--no-seedto skip seeding entirely and start a clean baseline database.
Legacy Commands Note:
ldm init-from has been deprecated and is superseded by the ldm link command.
LDM is conventions-driven and highly customizable. Choose a topic below for detailed information:
- Installation Guide β Setting up macOS (Colima/OrbStack), Linux, and Windows (WSL2).
- LDM Conventions & Features β Default stacks, ports, database options, and key features.
- Compatibility Matrix β Supported host OS, Docker providers, and engines.
- Troubleshooting & Diagnostics β Logs, Docker deadlocks, port conflicts, and common fixes.
- Fresh Vanilla Start β Launching empty Liferay instances for quick tests.
- PaaS "Golden Path" Local Dev β Fetching backups and replicating Liferay Cloud environments locally.
- Liferay Workspace Local Dev β Linking workspaces with LDM for customization development.
- Workspace Import & Packaging β Importing workspaces and exporting/restoring portable
.ldmppackages. - Runtime Overrides & Fragments β Dynamic substitution and environment-aware client extension patching.
- Properties Hierarchy & Precedence β The 5-layer cascading properties and
# !importantoverrides. - Sharing & Tunnels β Securely sharing local stacks publicly using tunnels.
- Liferay Version Upgrades β Safely upgrading Liferay Docker image tags, database backup snapshots, and schema auto-upgrades.
- Data Management β Snapshots, pre-warmed seeds, and assets.
- Networking, DNS & Zero-Config SSL β Traefik routing, hostname mappings, and trust certificates.
- AI Command Center & LDM MCP Server β Powering AI workflows with LDM FastMCP tools.
- Advanced CLI Overrides β Colorless/ASCII outputs and global cli defaults.
- End-to-End Testing with LDM β Using LDM as an orchestration layer for automated CI/CD and local tests.
- Architecture Diagrams & Overview β Visual environment diagrams, hybrid volumes, routing, and lifecycles.
- Testing & Validation β Running unit and E2E test suites.
- Release Playbook β Pipeline standards and release workflow triggers.
For a complete structured table of contents, visit the Documentation Index.
Last Updated: 2026-07-20 | Last Reviewed: 2026-07-09