-
-
Save DrSterling/a1b9349142056b649e3fbefb4c0d391e to your computer and use it in GitHub Desktop.
A single node OpenSearch and OpenSearch dashboards docker compose.
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:${OPENSEARCH_VERSION:-2.11.1} | |
| container_name: opensearch | |
| environment: | |
| discovery.type: single-node | |
| node.name: opensearch | |
| OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m" | |
| volumes: | |
| - opensearch-data:/usr/share/opensearch/data | |
| ports: | |
| - 9200:9200 | |
| - 9600:9600 | |
| networks: | |
| - opensearch-net | |
| opensearch-dashboards: | |
| image: opensearchproject/opensearch-dashboards:${OPENSEARCH_DASHBOARDS_VERSION:-2.11.1} | |
| container_name: opensearch-dashboards | |
| ports: | |
| - 5601:5601 | |
| expose: | |
| - "5601" | |
| environment: | |
| OPENSEARCH_HOSTS: '["https://opensearch:9200"]' | |
| networks: | |
| - opensearch-net | |
| depends_on: | |
| - opensearch | |
| volumes: | |
| opensearch-data: | |
| networks: | |
| opensearch-net: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment