This video will take you through installing Artifactory and Xray using Docker Compose
Hi, my name is Ino from JFrog Support. In this video, I will show how to install Artifactory and Xray with Docker Compose. Let’s start.
Before installation, please make sure to have separate servers ready for Artifactory and Xray as they share a lot of the same ports. Please check that your servers meet the system requirements, which can be found on the Jfrog Wiki. As we will be installing with Docker Compose, please have Docker and Docker Compose installed on each server.
Let’s start installing Artifactory. I have downloaded the installation file from the JFrog website. Inside the installation directory, let’s run the config script. The first step is installation directory. This will determine where the Artifactory will be installed. For this demo we will keep the default setting.
IP address. This is Artifactory server’s IP address. We’ll keep the default setting and move on.
Additional node. If you’re creating an Ha cluster, you will need to select yes. Since we’re installing a single node instance, we’ll select no. Next, if you’ll be using an external database, which is highly recommended for a larger Artifactory instance, select no here and configure Artifactory to connect with an external database later. We’ll select yes for the demo. Then enter passwords.
After these steps, Artifactory is ready to run. First start Postgres database. Then start Artifactory. After a few minutes, we can access Artifactory from the browser with the provided URL. After logging in, you can follow the onboarding wizard to finish the Artifactory set up process.
Now we can move on to Xray installation. Before we install Xray we need JFrog URL and join key. These can be found under administration tab, security, settings page. Under connection details, enter your password, and you will be able to see and copy this information and use them later during Xray installation. On the Xray server, I’ve also downloaded the installation file from the JFrog website. We’ll run the config script here as well and follow the installation steps. As this is not an upgrade, we’ll select yes and continue to the next step.
Installation directory. Same as Artifactory we’ll keep the default setting. Next Xray will run a system diagnostics to check if the server is ready to install Xray. Next, as mentioned earlier, copy the JFrog URL from Artifactory. For this demo, my JFrog URL is this. Next, the join key. This can be copied over from Artifactory as well.
IP address. We will use the default IP address. Additional node. Same as Artifactory, we will select no here. External database. Same as Artifactory, we will select yes and enter passwords.
First let’s run rabbit MQ for indexing and analyzing artifacts. Next let’s start Postgres database. And lastly, let’s start Xray. After a few minutes, we can see that Xray has been added to Artifactory. You can follow the Xray onboarding wizard to finish the Xray set up process.
That was my video on how to install Artifactory and Xray with Docker Compose. Thanks for watching, and I hope you have enjoyed it. If you have any comments, feedback, or questions, please leave them in the comments section below.