Skip to content

Commit 34168fd

Browse files
committed
fix: make elasticsearch address reachable from outside the docker network
To use elasticsearch-ui or curl to make requests directly to elasticsearch, it needs to be reachable from outside the docker network. Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent 62a439e commit 34168fd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,9 @@ services:
974974
- VIRTUAL_HOST=elasticsearch${DOMAIN_SUFFIX}
975975
- VIRTUAL_PORT=9200
976976
- VIRTUAL_PROTO=http
977+
ports:
978+
- "9200:9200"
977979
expose:
978-
- 9200
979980
- 9300
980981
volumes:
981982
- elasticsearch_data:/usr/share/elasticsearch/data

0 commit comments

Comments
 (0)