### Start OpenSearch Cluster Services with Docker Compose Source: https://github.com/matanbaruch/aws-cloudfront-logs-opensearch/blob/main/README.md Executes the `docker-compose up` command to start all defined services in detached mode (`-d`) and waits for them to become healthy (`--wait`). This initiates the OpenSearch node, Logstash for log processing, and OpenSearch Dashboards for data visualization. ```Bash docker-compose up -d --wait ``` -------------------------------- ### Docker Compose Service Definitions for Cloudfront Log Ingestion Source: https://github.com/matanbaruch/aws-cloudfront-logs-opensearch/blob/main/README.md Detailed configuration for the core services within the `docker-compose.yml` file, outlining the setup for the OpenSearch node, Logstash for AWS S3 log ingestion, OpenSearch Dashboards for UI access, and a health check container. This section specifies images, container names, port mappings, environment variables, and inter-service dependencies. ```APIDOC Services: OpenSearch Node: Image: opensearchproject/opensearch:latest Container Name: opensearch-node Ports: - 9200:9200 (HTTP REST API) - 9600:9600 (monitoring) Environment Variables: - cluster.name: Name of the OpenSearch cluster - node.name: Name of the OpenSearch node - discovery.seed_hosts: Hosts to seed the discovery process - cluster.initial_cluster_manager_nodes: Initial cluster manager nodes - bootstrap.memory_lock: Lock memory on startup - OPENSEARCH_JAVA_OPTS: Java options for OpenSearch - DISABLE_INSTALL_DEMO_CONFIG: Disable installation of demo configurations - DISABLE_SECURITY_PLUGIN: Disable security plugin Health Check: Uses curl to check if OpenSearch is running. Logstash: Container Name: logstash Volumes: - Mounts AWS credentials and Logstash configuration files Environment Variables: - OPENSEARCH_HOST: Hostname of the OpenSearch node - OPENSEARCH_PORT: Port of the OpenSearch HTTP REST API - BUCKET_NAME: AWS S3 bucket name - BUCKET_PREFIX: Prefix for objects in the S3 bucket - BUCKET_REGION: Region of the AWS S3 bucket - AWS_SHARED_CREDENTIALS_FILE: Location of AWS credentials file Dependencies: Depends on OpenSearch node being healthy. OpenSearch Dashboards: Image: opensearchproject/opensearch-dashboards:latest Container Name: opensearch-dashboards Ports: - 5601:5601 (accessing the Dashboards UI) Environment Variables: - OPENSEARCH_HOSTS: Hosts of the OpenSearch cluster - DISABLE_SECURITY_DASHBOARDS_PLUGIN: Disable security plugin for OpenSearch Dashboards Dependencies: Depends on OpenSearch node being healthy. Health Check: Uses curl to check if OpenSearch Dashboards is running. Health Check: Image: busybox Container Name: healthcheck Dependencies: Depends on OpenSearch node, OpenSearch Dashboards, and Logstash. Command: Sleeps indefinitely to keep the container running. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.