Pipeline optimization: Docker Compose
This guide describes how to deploy the pipeline resource optimization service (Groundswell) for Seqera Platform Enterprise with Docker Compose.
Prerequisites
Before you begin, you need:
- A running Seqera Platform Enterprise Docker Compose deployment
- Access to your MySQL database
New installation
-
Set the
TOWER_ENABLE_GROUNDSWELLenvironment variable intower.envtotrue. This enables the service at the default URLhttp://groundswell:8090.To use a custom URL, set
GROUNDSWELL_SERVER_URLinstead. -
In your docker-compose.yml file, uncomment the
groundswellsection. -
To create a schema on the local MySQL container, uncomment the
init.sqlscript in thevolumessection. -
Download the init.sql file and store it in the mount path of your
docker-compose.yml. -
Start your Platform instance:
docker compose up -d
Existing installation
-
Set the
TOWER_ENABLE_GROUNDSWELLenvironment variable intower.envtotrue.To use a custom URL, set
GROUNDSWELL_SERVER_URLinstead. -
In your docker-compose.yml file, uncomment the
groundswellsection. -
Create the Groundswell database schema:
CREATE DATABASE IF NOT EXISTS `swell`;
CREATE USER 'swell'@'%' IDENTIFIED BY 'swell';
GRANT ALL PRIVILEGES ON *.* TO 'swell'@'%';
FLUSH PRIVILEGES;For managed database services (RDS, Cloud SQL, etc.):
CREATE DATABASE IF NOT EXISTS `swell`;
CREATE USER 'swell'@'%' IDENTIFIED BY 'swell';
GRANT ALL PRIVILEGES ON `%`.* TO 'swell'@'%';
FLUSH PRIVILEGES; -
Download the groundswell.env file and update the database URLs:
TOWER_DB_URL=mysql://db:3306/tower
SWELL_DB_URL=mysql://db:3306/swell -
Restart your Platform instance:
docker compose up -d
Verify
When pipeline optimization is active, pipelines with at least one successful run display a lightbulb icon in the Launchpad.
Configuration
See Pipeline resource optimization for additional configuration options.