Installing Insights in Docker
Download the Docker installation package in the corresponding server. There are 2 approaches.
Single server architecture : All components are installed in one server itself.
2 Server architecture : Neo4j is installed in server 1 and remaining components are installed in server 2.
2. Unzip the package and update the config.env files present inside each folder. Same details should be entered in the .env file. For 2 Server setup, update the server IP for the related components in the corresponding fields.
postgres/config.env
USER= <username>
USER_GRAFANA_PASSWORD= <grafana password>
POSTGRES_PASSWORD= <postgres password>
neo4j/config.env
NEO4J_AUTH= <NEO4J_USERNAME/NEO4J_PASSWORD>
NEO4JLABS_PLUGINS=["apoc"]
NEO4J_apoc_trigger_enabled=true
NEO4J_USERNAME= <neo4j username>
NEO4J_PASSWORD= <neo4j password>
grafana/config.env
postgresIP= <*IP of server in which postgres is installed incase of 2 Server setup*>
postgresPort=
grafanaDBUser= <grafana username>
grafanaDBPass= <grafana password>
enableLoki=true
rabbitmq/config.env
RABBITMQ_USER= <RabbitMQ username>
RABBITMQ_PASSWORD= <RabbitMQ password>
.env
host Instance= <Corresponding Server IP incase of 2 server setup>
service Port= <port in which Insights UI run>
grafanaPort=
neo4jIP= <Corresponding Server IP incase of 2 server setup>
neo4jHttpPort=
neo4jBoltPort=
neo4jUser=
neo4jPassword=
postgresIP= <Corresponding Server IP incase of 2 server setup>
postgresPort=
grafanaDBUser=
grafanaDBPass=
rabbitMqIP= <Corresponding Server IP incase of 2 server setup>
RabbitMQ User=
rabbitMqPassword=
rabbitMqPort=
rabbitMqUIPort=15672
LOKI_HOST= <Corresponding Server IP incase of 2 server setup>
LOKI_PORT=31000
PROMTAIL_LISTEN_PORT=
enablePromtail=true
version= <version you need to download>
Once the values are updated in above config.env files and .env file,
1.For single server setup, execute the below command from the folder which is having docker-compose.yml file.
docker-compose up
2.For 2 server setup please run the commands in the corresponding servers from the folders having docker-compose.yml file.
a. Neo4j will be running on server1
docker-compose -f docker-compose-server1.yml up
b. Remaining all components will be running on server2
docker-compose -f docker-compose-server2.yml up
©2021 Cognizant, all rights reserved. US Patent 10,410,152