Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,595 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Liferay Docker Manager (ldm)

A professional command-line orchestrator for running, managing, and developing Liferay Portal and Liferay DXP environments in Docker using Docker Compose.


🐳 Why use LDM for Liferay in Docker?

Setting up Liferay in Docker manually requires managing complex Docker Compose files, container health checks, database volume permissions, Traefik reverse proxies, and pre-seeded databases. Liferay Docker Manager (LDM) streamlines your entire Liferay Docker environment into simple, declarative CLI commands:

  • Zero-Config Liferay Docker Stacks: Boot production-grade Liferay DXP, PostgreSQL, and Search containers instantly.
  • Fast Local Dev & Workspace Linking: Link local Liferay Workspaces directly with running Liferay Docker containers.
  • Instant Database Snapshots: Save and restore complete state snapshots of your Liferay Docker volumes.

πŸŽ₯ Showcase

Check out our Video Showcase to see short demonstrations of LDM in action, including Fast Provisioning, Cloud Hydration, and instant Snapshots & Restoration!


πŸš€ Quick Start

The standalone binary is the recommended way to use LDM. Copy and run the block specific to your environment:

macOS (Apple Silicon)

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/ldm

macOS (Apple Intel)

sudo 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/ldm

Linux / WSL2

sudo 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/ldm

Windows (PowerShell)

New-Item -ItemType Directory -Force -Path "$HOME\bin"
Invoke-WebRequest -Uri "https://github.com/peterrichards-lr/liferay-docker-manager/releases/latest/download/ldm-windows.exe" -OutFile "$HOME\bin\ldm.exe"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$HOME\bin", "User")

For detailed platform-specific prerequisites, see the Full Installation Guide.


πŸ“‹ Common Commands

Once installed, bootstrap or run your stacks instantly:

# 1. THE CONFIDENCE BOOSTER: Run Liferay with pre-configured samples
# For more information see LDM Conventions & Features
ldm run my-sample-project --samples

# 2. THE VANILLA FLOW: Run a fresh vanilla Liferay instance (LTS release)
# For more information see Fresh Vanilla Start
ldm run my-vanilla-project --vanilla --tag 2026.q1.7-lts

# 3. THE DEVELOPER FLOW: Link a local workspace and start monitoring
# For more information see Liferay Workspace Local Dev
ldm link /path/to/workspace my-project

# 4. THE PREDEFINED QUICKSTART: Bootstrap an accelerator demo stack
# For more information see LDM Conventions & Features
ldm quickstart aica

# 5. THE TIME MACHINE: Take a snapshot of your database and volumes, and restore them later
# For more information see Data Management & Backup Snapshots
ldm snapshot my-project
ldm restore my-project

# 6. THE CLONE FLOW: Clone and setup a remote Git workspace repository
# For more information see Liferay Workspace Local Dev
ldm clone https://github.com/my-org/my-workspace.git my-project

# 7. THE PORTABLE PACKAGE: Export and Import compiled project snapshots (.ldmp)
# For more information see Portable Packages & Remote Repositories (.ldmp)
ldm package my-project
ldm import /path/to/my-project.ldmp

# 8. THE MULTI-NODE FLOW: Register compute targets and live-migrate workloads
# For more information see Multi-Node Orchestration & Remote Node Setup
ldm target add prod-aws --host 34.200.10.5 --user ubuntu --key ~/.ssh/aws-key.pem
ldm target migrate local prod-aws

Note

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-interactive to automatically confirm seed downloads, or pass --vanilla Added in v2.16.0 / --no-seed to 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.


πŸ“š Documentation Signposts

LDM is conventions-driven and highly customizable. Choose a topic below for detailed information:

1. Getting Started

2. Local Development & Customization

3. Environment & Remote Infrastructure Operations

4. Developer & Integration Resources


For a complete structured table of contents, visit the Documentation Index.


Last Updated: 2026-08-04 | Last Reviewed: 2026-08-03

About

A professional command-line orchestrator for quickly standing up Liferay Portal and DXP environments using Docker Compose.

Topics

Resources

Code of conduct

Contributing

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages