Created
August 22, 2023 21:06
-
-
Save romiras/d8e30672518652f1e36862bfae993481 to your computer and use it in GitHub Desktop.
Docker Compose for OpenSearch 2.x single node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
opensearch: | |
image: opensearchproject/opensearch:${OPENSEARCH_VERSION} | |
restart: "${OPENSEARCH_RESTART:-unless-stopped}" | |
environment: | |
- cluster.name=opensearch-cluster | |
- node.name=opensearch-node1 | |
- discovery.type=single-node | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms750m -Xmx750m" | |
- "DISABLE_SECURITY_PLUGIN=true" # Disables Security plugin | |
- "DISABLE_INSTALL_DEMO_CONFIG=true" # Prevents execution of bundled demo script which installs demo certificates and security configurations to OpenSearch | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- "${HOST_OPENSEARCH_PORT:-9200}:9200" | |
- "${HOST_OPENSEARCH_PORT2:-9300}:9300" | |
command: ["opensearch", "-Elogger.level=${OPENSEARCH_LOG_LEVEL:-INFO}"] | |
volumes: | |
- opensearch-data:/usr/share/opensearch/data | |
opensearch-admin: | |
image: opensearchproject/opensearch-dashboards:${OPENSEARCH_DASHBOARDS_VERSION} | |
depends_on: | |
- opensearch | |
ports: | |
- "${HOST_OPENSEARCH_DASHBOARDS_PORT:-5601}:5601" | |
- 9600:9600 # required for Performance Analyzer | |
environment: | |
- OPENSEARCH_HOSTS=http://opensearch:9200 | |
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" # disables security dashboards plugin in OpenSearch Dashboards | |
volumes: | |
opensearch-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment