i dont understand about this, how i want to use the configuration in Docker-compose.yml. do i need to create opensearch.yml for docker in the file?
I think the documentation you put only talks about how to modify the static settings in opensearch.yml after the cluster starts, if you want to use a custom yaml file when starting the cluster by docker, you can specify volumes to mount a file to the container, like this:
services:
opensearch-node1:
volumes:
- opensearch-data1:/usr/share/opensearch/data
- ./custom-opensearch.yml:/usr/share/opensearch/config/opensearch.yml
opensearch-node2:
volumes:
- opensearch-data2:/usr/share/opensearch/data
- ./custom-opensearch.yml:/usr/share/opensearch/config/opensearch.yml
opensearch-dashboards:
volumes:
- ./custom-opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
, refer to the documentation about this: Docker - OpenSearch Documentation.
thanks for the information. i appreciate it so much.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.