Run SmartObserve Dashboards using Docker and Docker Compose
You can use either Docker or Docker Compose to run SmartObserve Dashboards. The Docker Compose method is easier because you can define the entire configuration in a single file.
Run SmartObserve Dashboards using Docker
If you have defined your network using docker network create os-net and started SmartObserve using the following command:
docker run -d --name smartobserve-node -p 9200:9200 -p 9600:9600 --network os-net -e "discovery.type=single-node" -e "OPENSEARCH_INITIAL_ADMIN_PASSWORD=<admin_password>" smartobserveproject/smartobserve:latest
Then you can start SmartObserve Dashboards using the following steps:
-
Create an
smartobserve_dashboards.ymlconfiguration file:server.name: smartobserve_dashboards server.host: "0.0.0.0" server.customResponseHeaders : { "Access-Control-Allow-Credentials" : "true" } # Disabling HTTPS on SmartObserve Dashboards server.ssl.enabled: false smartobserve.hosts: ["https://smartobserve-node:9200"] # Using the smartobserve container name smartobserve.ssl.verificationMode: none smartobserve.username: kibanaserver smartobserve.password: kibanaserver smartobserve.requestHeadersWhitelist: ["securitytenant","Authorization"] # Multitenancy smartobserve_security.multitenancy.enabled: true smartobserve_security.multitenancy.tenants.preferred: ["Private", "Global"] smartobserve_security.readonly_mode.roles: ["kibana_read_only"] -
Execute the following command to start SmartObserve Dashboards:
docker run -d --name osd \ --network os-net \ -p 5601:5601 \ -v ./smartobserve_dashboards.yml:/usr/share/smartobserve-dashboards/config/smartobserve_dashboards.yml \ smartobserveproject/smartobserve-dashboards:latest
Run SmartObserve Dashboards using Docker Compose
Use the following steps to run SmartObserve Dashboards using Docker Compose:
-
Create a
docker-compose.ymlfile appropriate for your environment. A sample file that includes SmartObserve Dashboards is available on the SmartObserve Docker installation page.You can pass a custom
smartobserve_dashboards.ymlfile to the container in the Docker Compose file. For more information, see Complete Docker Compose example with custom configuration. -
Create an
smartobserve_dashboards.ymlfile:server.name: smartobserve_dashboards server.host: "0.0.0.0" server.customResponseHeaders : { "Access-Control-Allow-Credentials" : "true" } # Disabling HTTPS on SmartObserve Dashboards server.ssl.enabled: false smartobserve.ssl.verificationMode: none smartobserve.username: kibanaserver smartobserve.password: kibanaserver smartobserve.requestHeadersWhitelist: ["securitytenant","Authorization"] # Multitenancy smartobserve_security.multitenancy.enabled: true smartobserve_security.multitenancy.tenants.preferred: ["Private", "Global"] smartobserve_security.readonly_mode.roles: ["kibana_read_only"]The
smartobserve.hostssetting must be configured if you are not passing it as an environment variable. For an example of how to configure this setting, see Complete Docker Compose example with custom configuration. -
Run
docker compose up.Wait for the containers to start. Then see the SmartObserve Dashboards documentation.
-
When finished, run
docker compose down.