- Image:
opensearchproject/opensearch:3.1.0 - Ports: 9200 (REST API), 9600 (Performance Analyzer)
- Environment:
- Runs as a single node
- Security plugin disabled
- Java heap size: 512MB
- Initial admin password:
gKL-TVxTv3e(not used when security is disabled)
- Data Persistence: Uses a Docker volume
opensearch-datafor data storagecker Compose
This project provides a Docker Compose setup for running an OpenSearch stack, including OpenSearch, OpenSearch Dashboards, and Logstash.
- Image:
opensearchproject/opensearch:3.1.0 - Ports: 9200 (REST API), 9600 (Performance Analyzer)
- Environment:
- Runs as a single node
- Security plugin disabled
- Java heap size: 512MB
- Initial admin password:
gKL-TVxTv3e
- Data Persistence: Uses a Docker volume
opensearch-datafor data storage
- Image:
opensearchproject/logstash-oss-with-opensearch-output-plugin:latest - Ports:
- 5044: TCP input
- 5045: HTTP input
- 9601: Monitoring API
- Pipeline Config: Mounts
logstash.conffrom the project directory - Depends on: OpenSearch
- Image:
opensearchproject/opensearch-dashboards:3.1.0 - Port: 5601 (Web UI)
- Environment:
- Connects to OpenSearch at
http://opensearch:9200 - Security plugin disabled (matches OpenSearch configuration)
- Connects to OpenSearch at
- Depends on: OpenSearch## Usage
-
Clone this repository
-
Start the stack:
docker-compose up -d
-
Access the services:
- OpenSearch API: http://localhost:9200
- OpenSearch Dashboards: http://localhost:5601
- Logstash TCP input:
localhost:5044 - Logstash HTTP input:
localhost:5045
-
Stop the stack:
docker-compose down
docker-compose.yml: Main Docker Compose filelogstash.conf: Logstash pipeline configuration
- Security is disabled for both OpenSearch and OpenSearch Dashboards (no login required)
- Data is persisted in the
opensearch-dataDocker volume - All services are connected via the
opensearch-netDocker network - For production use, enable security and change default credentials
For more information, see the OpenSearch documentation.