Download the Docker installation package in the corresponding server. If you are following 2 server architecture setup, Download the below Docker package on both servers.
2. Unzip the package and update the config.env files present in the package. For 2 Server setup, update the server IP for the related components in the corresponding fields. There are 5 config.env files in insights_docker. Update all the config.env files for all components.
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>
config.env
hostInstance= <*Corresponding Server IP incase of 2 server setup*>
servicePort=
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*>
rabbitMqUser=
rabbitMqPassword=
rabbitMqPort=
rabbitMqUIPort=
LOKI_HOST= <Corresponding Server IP incase of 2 server setup>
LOKI_PORT=
PROMTAIL_LISTEN_PORT=
enablePromtail=true
Once the values are updated in above config.env files,
1.For single server setup where all the containers will be running on the same host execute the below command inside 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