This repository was archived by the owner on Dec 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ services:
4141 networks :
4242 - elastic
4343 ports :
44- - 9200:9200
44+ - ${ELASTICSEARCH_HOST1_HTTP}:${ELASTICSEARCH_HOST1_HTTP}
4545 - ${ELASTICSEARCH_HOST1_TRANSPORT}:${ELASTICSEARCH_HOST1_TRANSPORT}
4646 logging :
4747 options :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ services:
4242 networks :
4343 - elastic
4444 ports :
45- - 9201:9201
45+ - ${ELASTICSEARCH_HOST2_HTTP}:${ELASTICSEARCH_HOST2_HTTP}
4646 - ${ELASTICSEARCH_HOST2_TRANSPORT}:${ELASTICSEARCH_HOST2_TRANSPORT}
4747 logging :
4848 options :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ services:
4242 networks :
4343 - elastic
4444 ports :
45- - 9202:9202
45+ - ${ELASTICSEARCH_HOST3_HTTP}:${ELASTICSEARCH_HOST3_HTTP}
4646 - ${ELASTICSEARCH_HOST3_TRANSPORT}:${ELASTICSEARCH_HOST3_TRANSPORT}
4747 logging :
4848 options :
Original file line number Diff line number Diff line change @@ -119,6 +119,11 @@ ELASTICSEARCH_HOST1=elasticsearch1
119119ELASTICSEARCH_HOST2=elasticsearch2
120120ELASTICSEARCH_HOST3=elasticsearch3
121121
122+ # Ports are different just to be able to start multiple Elasticsearch containers on one host.
123+ ELASTICSEARCH_HOST1_HTTP=9200
124+ ELASTICSEARCH_HOST2_HTTP=9201
125+ ELASTICSEARCH_HOST3_HTTP=9202
126+
122127# Ports are different just to be able to start multiple Elasticsearch containers on one host.
123128ELASTICSEARCH_HOST1_TRANSPORT=9300
124129ELASTICSEARCH_HOST2_TRANSPORT=9301
You can’t perform that action at this time.
0 commit comments