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:

PrerequisiteDetails
JPDsAt 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 ServicesInstall the Grid and PFED Services on every JPD in the federation, including the main site and all member sites.
Grid VersionUse Grid Docker Compose package version 1.963.10 or later, consumed only from the private release repositories.
PFED Service VersionUse PFED Service version 1.1851.41 or later. It is included in the Grid Docker Compose package.
JFBus ServiceThe JFBus service is running on every JPD in the federation.
Mission Control on the Main SiteThe Mission Control service is enabled on the main site. The main site acts as the management site for the federation.
LicenseEvery 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 TrustA Circle of Trust is set up between all JPDs.
Base URLEach JPD has a Base URL configured that the other JPDs can reach.
DatabaseRequired 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

  1. Enable federation in your JFrog Artifactory deployment, then restart Artifactory.

    Add the following to the Artifactory system.yaml file, located at <JFROG_HOME>/artifactory/var/etc/system.yaml:

    access:
      federation:
        enabled: true
  2. Verify that Docker Engine and Docker Compose 20.10 or later are installed on the host. See System Requirements.

  3. 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"
  4. Extract the contents of the compressed archive (.tar.gz file) and then go to the extracted folder.

    tar -xvf jfrog-grid-<VERSION>-compose.tar.gz
  5. 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>;
  6. Update the .env file in the extracted jfrog-grid-<VERSION>-compose folder.

    Set the Docker registry to the authenticated JFrog release registry:

    ## Docker registry to fetch images from
    DOCKER_REGISTRY=releases-authenticated-docker.jfrog.io
  7. 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>
  8. Run the interactive configuration script from the extracted folder.

    ./config.sh
    ⚠️

    Use 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 default 8082, or set a free port if Grid runs on the same host as Artifactory, since Artifactory already uses 8082.
    • 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 example jdbc:postgresql://<DB_HOST>:5432/jfpfed.
    • Username and Password: The database credentials.

    The script creates the required directories and completes the setup.

  9. Deploy JFrog Grid with the project name grid.

    docker compose -p grid up -d

    This pulls the images and starts the Grid, PFED Service, router, and observability containers.

  10. Check the status of the running containers.

    docker compose -p grid ps

    The grid and pfed containers, together with the router and observability containers, should be up.

  11. Get the container logs.

    docker compose -p grid logs -f

Did this page help you?