devenv: fix loki&elastic naming conflict (#57268)

This commit is contained in:
Gábor Farkas 2022-10-20 09:49:52 +02:00 committed by GitHub
parent 764d5b9929
commit e8cad52132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
# You need to run 'sysctl -w vm.max_map_count=262144' on the host machine
elasticsearch:
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:${elastic_version}
command: elasticsearch
environment:
@ -10,11 +10,11 @@
ports:
- "9200:9200"
data:
elastic-data:
build: docker/blocks/elastic/data
command: node /home/node/data.js http://elasticsearch:9200
command: node /home/node/data.js http://elastic:9200
depends_on:
- elasticsearch
- elastic
# elastic starts slowly, the first couple start of data.js
# might fail, so we auto-restart it on failure.
restart: "on-failure"

View File

@ -3,7 +3,7 @@
ports:
- "3100:3100"
data:
loki-data:
build: docker/blocks/loki/data
command: node /home/node/data.js http://loki:3100
depends_on: