Configure Xray to Use PostgreSQL Single Node

JFrog Installation & Setup Documentation

Content Type
Installation & Setup
ft:sourceType
Paligo

When you configure Xray to use PostgreSQL, all the information about components is stored in PostgreSQL.

  1. Stop the Xray service.

  2. Edit the database connection details in the system.yaml configuration file.

    shared:
      database:
        type: postgresql
        driver: org.postgresql.Driver
        url: "postgres://<DB URL>" #for example: localhost:5432>/xraydb?sslmode=disable
        username: xray
        password: password

    Note

    Database URL for Xray is "postgres://<DB URL>", while for Artifactory it is "jdbc:postgresql://<DB URL>". Ensure that you use the correct notation.

  3. Start the Xray service.