Manual Docker Compose Installation
Extract the contents of the compressed archive and go to the extracted folder.
.env file included within the Docker-Compose archive
This .env file is used by docker-compose and is updated during installations and upgrades.
Notice that some operating systems do not display dot files by default. If you've made any changes to the file, remember to backup before an upgrade.
Create the following folder structure under
$JFROG_HOME/insight
.Provide folder permissions to the folders as follows.
Copy the appropriate docker-compose templates from the templates folder to the extracted folder. Rename it as
docker-compose.yaml
.NOTE: The commands below assume you are using the template:
docker-compose-postgres-es.yaml
Requirement
Template
Insight with externalised databases
docker-compose.yaml
Insight with Elasticsearch and PostgreSQL
docker-compose-postgres-es.yaml
Update the
.env
fileCustomize the product configuration.
Set the Artifactory connection details.
Customize the PostgreSQL Database connection details. (optional)
Set any additional configurations (for example: ports, node id) using the Insight
system.yaml
configuration file.Note
Verify that the host's ID and IP are added to the
system.yaml
. This is important to ensure that other products and Platform Deployments can reach this instance.
For Elasticsearch to work correctly, increase the map count. For additional information, see Elasticsearch documentation.
Create the necessary tables and users using the script: "createPostgresUsers.sh".
Start the PostgreSQL container.
Start Insight using docker-compose commands.
Access Insight from your browser at:
http://SERVER_HOSTNAME/ui/
. For example, on your local machine:http://localhost/ui/
.Check the Insight log.
Configuring the Log Rotation of the Console Log
The
console.log
file can grow quickly since all services write to it. The installation scripts add a cron job to log rotate theconsole.log
file every hour.This is not done for manual Docker Compose installations. Learn more on how to configure the log rotation.