To run a Lagoon Project, your system must meet the requirements to run Docker. We suggest installing the latest version of Docker for your workstation. You can download Docker here. We also suggest allowing Docker at least 4 CPUs and 4 GB RAM.
Local Development Environments#
TL;DR: install and start
- HomeBrew is the easiest way to install Pygmy, see the docs for more info.
Pygmy is a container stack for local development, developed collaboratively with the Lagoon team.
Learn more about Lagoon, pygmy, and Local Development Environments
Step by Step Guides#
- General: set up a new project in Lagoon
- General: first deployment
- Drupal: first deployment in Drupal
- Drupal: Lagoonize your Drupal site
- All: build and deployment process of Lagoon
Overview of Lagoon Configuration Files#
This is the main file that will be used by Lagoon to understand what should be deployed, as well as many other things. See documentation for
This file is used by
Docker Compose to start your local development environment. Lagoon also uses it to understand which of the services should be deployed, which type, and how to build them. This happens via
labels. See documentation for
Some Docker images and containers need additional customizations from the provided images. This usually has two reasons:
- Application code: Containers like NGINX, PHP, Node.js, etc, need the actual programming code within their images. This is done during a Docker build step, which is configured in a Dockerfile. Lagoon has full support for Docker, and therefore also allows you full control over the resulting images via Dockerfile customizations.
- Customization of images: Lagoon also allows you to customize the base images according to your needs. This can be to inject an additional environment variable, change a service configuration, or even install additional tools. We advise caution with installing additional tools to the Docker images, as you will need to maintain any adaptions in the future!
Supported Services & Base Images by Lagoon#
|MariaDB||10.4, 10.5, 10.6, 10.11||mariadb/Dockerfile|
|PostgreSQL||11, 12, 13, 14, 15||postgres/Dockerfile|
|Node.js||16, 18, 20||node/Dockerfile|
|PHP FPM||8.0, 8.1, 8.2||php/fpm/Dockerfile|
|PHP CLI||8.0, 8.1, 8.2||php/cli/Dockerfile|
|Python||3.7, 3.8, 3.9, 3.10, 3.11||python/Dockerfile|
|Redis||5, 6, 7||redis/Dockerfile|
|Varnish||5, 6, 7||varnish/Dockerfile|
|Ruby||3.0, 3.1, 3.2||ruby/Dockerfile|
All images are pushed to https://hub.docker.com/u/uselagoon. We suggest always using the latest tag (like
uselagoon/nginx:latest) as they are kept up to date in terms of features and security.
If you choose to use a specific Lagoon version of an image like
uselagoon/node-10:20.10.0 it is your own responsibility to upgrade the version of the images as soon as a new Lagoon version is released!