Skip to content

Commit 0a6616e

Browse files
committed
Setting elasticsearch hostname for dockercompose.
1 parent 7b33232 commit 0a6616e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- RELOAD=true
1515
- ENVIRONMENT=local
1616
- WEB_CONCURRENCY=10
17-
- ES_HOST=172.17.0.1
17+
- ES_HOST=elasticsearch
1818
- ES_PORT=9200
1919
- ES_USE_SSL=false
2020
- ES_VERIFY_CERTS=false
@@ -32,6 +32,7 @@ services:
3232
elasticsearch:
3333
container_name: es-container
3434
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-8.11.0}
35+
hostname: elasticsearch
3536
environment:
3637
ES_JAVA_OPTS: -Xms512m -Xmx1g
3738
volumes:

0 commit comments

Comments
 (0)