This document identifies the steps needed to stand up and configure the reporting stack for a new server.
NOTE: Before you get started, the OpenLMIS server needs to have a user with username "admin".
NOTE: Step-by-step instruction can be found on the page Set up the reporting stack step-by-step
Update the Config and Start the Services
...
Review and update the .env variables
Update all passwords (Note: If the database username/password is updated, update the database SQLALCHEMY_DATABASE_URI)
Update the domain names for superset and Nifi in
/etc/hosts
file- If using SSL, change the *_ENABLE_SSL variable to true and add your SSL certificate and chain into /openlmis-ref-distro/reporting/config/services/nginx/tls directory
- Update the OpenLMIS system's URL in the Superset config.py file. They are currently pointing to UAT.openlmis.org
- Open /openlmis-ref-distro/reporting/config/services/superset/superset_config.py
- Change the following variables to point to your version of OpenLMIS
- base_url
- access_token_url
- authorize_url
- HTTP_HEADERS allow-from variable
Start the services:
Code Block # Destroy any existing volumes docker-compose down -v # Build and start the services docker-compose up --build # If not using Scalyr, you should use: # docker-compose up --build -d --scale scalyr=0
- After 2 or 3 minutes open your web browser and navigate to the URLs
- Nifi can be accessed at {BaseUrl}/nifi
- Superset can be accessed at {BaseUrl}/login
...
Info |
---|
NB: If it's the first time running the reporting stack, and you'd like to get data to view immediately, follow the steps bellow:
|
Loading Charts and Dashboards
...