Skip to content

Instantly share code, notes, and snippets.

@knuu
Created September 29, 2024 23:56
Show Gist options
  • Save knuu/9651265f1e39027f92fb5aeeb5446579 to your computer and use it in GitHub Desktop.
Save knuu/9651265f1e39027f92fb5aeeb5446579 to your computer and use it in GitHub Desktop.
opensearch for local
version: '3'
services:
opensearch:
image: opensearchproject/opensearch:latest
container_name: opensearch
environment:
- discovery.type=single-node
- node.name=opensearch
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
- "DISABLE_SECURITY_PLUGIN=true"
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- opensearch-net
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:latest
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
- 'OPENSEARCH_HOSTS=["http://opensearch:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true"
networks:
- opensearch-net
volumes:
opensearch-data:
networks:
opensearch-net:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment