Deploying Elastic using the provided Docker Compose file
To help you evaluate the starter dashboards in a stand-alone sandbox environment, the GitHub repository z-open-data/odp-elastic-samples supplies a Docker Compose file that runs Elastic.
The Compose file starts a container for each Elastic Stack component: Elasticsearch, Logstash, Kibana.
Docker host system requirements
Minimum recommended system requirements for a Docker host running Elastic Stack with the starter dashboards:
- 16 GB RAM
- 200 GB disk space
- 4 vCPUs
Actual system requirements depend on your site-specific practices. For example, the disk space required depends on the amount of data stored in Elasticsearch, which depends on various site-specific factors, including:
- How much data you forward: which attribute tables, and fields in those tables, you forward, and how many systems you are monitoring
- How frequently you forward data, controlled by the attribute table collection interval in OMEGAMON
- How long you keep data, controlled by the Elasticsearch index lifecycle policy that you define
Using the Compose file
Install Docker and Docker Compose, if you don't already have them.
Check that your Docker host virtual memory settings meet the Elasticsearch requirements.
Copy the GitHub repository
z-open-data/odp-elastic-samplesto your Docker host.Either clone the repository or download a
.zipfile from GitHub.If you plan to deploy the starter dashboards outside of a sandbox environment, then enable Elasticsearch security features. In the supplied Elasticsearch configuration file
samples/docker/odp-elastic/elasticsearch/config/elasticsearch.yml, setxpack.security.enabledtotrueand configure Transport Layer Security (TLS) according to your site-specific requirements. For details, see the Elastic Stack security documentation.Warning
To simplify deploying the starter dashboards inside an already secure, stand-alone sandbox environment, the Docker Compose configuration disables Elasticsearch security features. The
elasticsearch.ymlfile supplied with the Docker Compose file setsxpack.security.enabledtofalse.Consider configuring the following settings in the supplied Kibana configuration file
samples/docker/odp-elastic/kibana/config/kibana.yml:xpack.security.session.idleTimeout
By default, Kibana times out user sessions that have been inactive for 8 hours. Consider setting a session timeout of your choice.xpack.security.session.lifespan
By default, Kibana requires users to log in again after 30 days. Consider setting a session life span of your choice.
For details, see the Kibana security documentation.
Open a command shell on your Docker host.
Change to the
samples/docker/odp-elasticdirectory of the repository.Enter the following command:
docker compose up -d
For details on Docker Compose, see the Docker documentation.
For details on the Docker images used by the Docker Compose file, see the Elastic Stack documentation.
