A convenient wrapper over docker-compose, which simplifies the local deployment of the project.
Deploy Local — is a command line interface designed to help developers quickly deploy projects to their local machine.
DL is a wrapper on top of Docker and docker-compose, in basic use no additional software or libraries are required to be installed.
Documentation local-deploy.github.io
Supported OS: Linux, macOS, Windows (via WSL2)
Supported architectures: x64, arm64
Supported frameworks and CMS: Bitrix, Laravel, WordPress, and many others with manual settings
- Support for PHP versions (apache and php-fpm) 7.3, 7.4, 8.0, 8.1, 8.2, 8.3
- Support for MySQL, MariaDB and PostgreSQL
- Downloading the database and files from the production server
- Redis
- Memcached
- Nginx
- Cross-platform
- Interception of mail sent via php
- Portainer - docker container management system
- Does not require root access (when installing the executable file in the user's directory)
- Accessing sites from the browser via .localhost or .nip.io
- Ability to add custom docker-compose.yaml files to DL configuration
- docker (more than v22)
- docker-compose v2
The docker compose
(as plugin) supported
Choose the installation method that suits you:
See all available installation methods https://local-deploy.github.io/getting-started/install
Just reinstall the application using one of the above methods. Updating using the built-in commands is not possible.
-
Start service containers (traefik, mailhog, portainer) with the command (at the first start):
dl service up
-
Create
.env
file in the root directory of your project with the command:dl env
-
Set the required variables in the
.env
file -
Run the command if you need to download the database and/or files from the production-server:
dl deploy
-
Run local project with command:
dl up
See quick reference for available commands.
Remember that dl is meant for development purposes, not production.