Grid Docker Compose Installation
Install JFrog Grid on a non-Kubernetes host using Docker Compose and connect it to your JFrog Platform Deployment.
Platform Federation is the JFrog solution for managing once and applying everywhere: it automates global administration across all your JPDs and keeps configuration free of drift.
It runs on two services: Grid, which orchestrates the federation, and the PFED Service, which carries out the sync between JPDs.
Install JFrog Grid Service on a self-managed environment using the JFrog Grid Docker Compose package.
Important: Moving to Secured Releases
JFrog Artifactory has moved to a secure and private release process for self-managed installations that requires user authentication. For information on logging in to obtain the latest releases or for assistance, please contact Support.
Consume JFrog Grid only from the private release repositories.
Prerequisites
Before you begin, verify the following:
| Prerequisite | Details |
|---|---|
| JPDs | At least two JPDs: one main site and one or more member sites. Each JPD must run Artifactory version 7.173.21 or later. |
| Grid and PFED Services | Install the Grid and PFED Services on every JPD in the federation, including the main site and all member sites. |
| Grid Version | Use Grid Docker Compose package version 1.963.10 or later, consumed only from the private release repositories. |
| PFED Service Version | Use PFED Service version 1.1851.41 or later. It is included in the Grid Docker Compose package. |
| JFBus Service | The JFBus service is running on every JPD in the federation. |
| Mission Control on the Main Site | The Mission Control service is enabled on the main site. The main site acts as the management site for the federation. |
| License | Every JPD has an Enterprise Plus license, with entitlements fetched by the JFConnect service. The required entitlement is `grid`. Edge nodes are not supported. |
| Circle Of Trust | A Circle of Trust is set up between all JPDs. |
| Base URL | Each JPD has a Base URL configured that the other JPDs can reach. |
| Database | Required for the PFED Service bundled with Grid. Grid itself doesn't need a database. Create the database before you install. The PFED Service can share Artifactory's database server where it uses its own schema. |
Steps to Install the Grid Docker Compose Package
-
Enable federation in your JFrog Artifactory deployment, then restart Artifactory.
Add the following to the Artifactory
system.yamlfile, located at<JFROG_HOME>/artifactory/var/etc/system.yaml:access: federation: enabled: true -
Verify that Docker Engine and Docker Compose 20.10 or later are installed on the host. See System Requirements.
-
Download the Grid Docker Compose package from the private release repositories, authenticating with your token. Replace
<VERSION>with the Grid version you want to install.curl -fL \ -H "Authorization: Bearer <TOKEN>" \ -O "https://releases.jfrog.io/artifactory/authenticated-releases/com/jfrog/grid/jfrog-grid/<VERSION>/jfrog-grid-<VERSION>-compose.tar.gz" -
Extract the contents of the compressed archive (
.tar.gzfile) and then go to the extracted folder.tar -xvf jfrog-grid-<VERSION>-compose.tar.gz -
Create database on the same database server that your JFrog Artifactory deployment already uses.
PFED Service Requires Its Database to Already Exist
PFED Service creates its own schema through migrations, but it does not create the database itself. Create an empty database before running
config.sh, or PFED Service fails to start. For example, on PostgreSQL:CREATE DATABASE jfpfed OWNER <db_user>; -
Update the
.envfile in the extractedjfrog-grid-<VERSION>-composefolder.Set the Docker registry to the authenticated JFrog release registry:
## Docker registry to fetch images from DOCKER_REGISTRY=releases-authenticated-docker.jfrog.io -
Log in to the authenticated JFrog release registry so Docker can pull the Grid images.
docker login releases-authenticated-docker.jfrog.io -u <USERNAME> -p <TOKEN> -
Run the interactive configuration script from the extracted folder.
./config.shUse the PFED (Platform Federation) Service Bundled with Grid Service
When you run Grid Service, the PFED Service must run from the Grid Docker Compose package, not from Artifactory. If PFED Service is already enabled on your existing Artifactory deployment, disable it there before you install Grid.
Do not run the PFED Service from both Grid and Artifactory at the same time.When asked "Do you want to disable PFED?", keep the default (
N).Provide values for the following keys when prompted:
Installation Directory: The Grid data directory. The default is$HOME/.jfrog/grid.JFrog URL: The URL of the machine where JFrog Artifactory is deployed, or the URL of the load balancer that directs traffic to it.Join Key: The join key of your JPD.Master Key: The unique master key that the Grid service requires.IP address of this machine: The IP address of the Grid host.Router Entrypoints ExternalPort: Keep the default8082, or set a free port if Grid runs on the same host as Artifactory, since Artifactory already uses8082.Database Type: The same database type as your JFrog Artifactory deployment: PostgreSQL, MySQL, MariaDB, MS SQL Server, or Oracle.Database URL: The JDBC URL of the database you created in step 5, for examplejdbc:postgresql://<DB_HOST>:5432/jfpfed.UsernameandPassword: The database credentials.
The script creates the required directories and completes the setup.
-
Deploy JFrog Grid with the project name
grid.docker compose -p grid up -dThis pulls the images and starts the Grid, PFED Service, router, and observability containers.
-
Check the status of the running containers.
docker compose -p grid psThe
gridandpfedcontainers, together with the router and observability containers, should be up. -
Get the container logs.
docker compose -p grid logs -f
Updated about 14 hours ago
