Skip to content

Commit

Permalink
config: export SEARCH_HOSTS environment for OpenSearch/ElasticSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
slint authored and alejandromumo committed Nov 20, 2024
1 parent d920a3d commit d1e4f93
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker_services_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"DEFAULT_VERSIONS": {
"ELASTICSEARCH_7_LATEST": "7.10.2", # the last of the OSS versions (https://github.com/elastic/elasticsearch/issues/58303)
},
"CONTAINER_CONNECTION_ENVIRONMENT_VARIABLES": {
"search": {
"SEARCH_HOSTS": "\"[{'host': 'localhost', 'port': 9201}]\"",
}
},
}
"""Elasticsearch service configuration."""

Expand All @@ -45,6 +50,11 @@
"OPENSEARCH_1_LATEST": "1.3.18",
"OPENSEARCH_2_LATEST": "2.16.0",
},
"CONTAINER_CONNECTION_ENVIRONMENT_VARIABLES": {
"search": {
"SEARCH_HOSTS": "\"[{'host': 'localhost', 'port': 9201}]\"",
}
},
}
"""Opensearch service configuration."""

Expand Down

0 comments on commit d1e4f93

Please sign in to comment.