Created
January 23, 2025 12:52
-
-
Save danieldai/f29007f62d31fecdf63d28a963879684 to your computer and use it in GitHub Desktop.
opensearch example docker-compose.yml
This file contains hidden or 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
services: | |
opensearch: | |
image: opensearchproject/opensearch:latest | |
container_name: opensearch | |
environment: | |
- discovery.type=single-node | |
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=1ASDF123Aa!# | |
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Adjust heap size as needed | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- "9200:9200" | |
- "9600:9600" # Required for Performance Analyzer | |
networks: | |
- opensearch-net | |
opensearch-dashboards: | |
image: opensearchproject/opensearch-dashboards:latest | |
container_name: opensearch-dashboards | |
ports: | |
- "5601:5601" | |
environment: | |
OPENSEARCH_HOSTS: '["https://opensearch:9200"]' | |
plugins.security.disabled: true | |
networks: | |
- opensearch-net | |
networks: | |
opensearch-net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment