version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
container_name: elasticsearch
# restart: always
environment:
- xpack.security.enabled=false
- discovery.type=single-node
volumes:
- /home/user/green:/usr/share/elasticsearch
networks:
- local_network
ports:
- 9200:9200
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:7.10.0
restart: always
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
networks:
- local_network
ports:
- 5601:5601
depends_on:
- elasticsearch
nginx:
image: nginx:stable
restart: always
volumes:
- /home/user/docker/nginx:/etc/nginx
networks:
- local_network
ports:
- 80:80
networks:
local_network:
driver: bridge
при таком compose файл, контейнер (elasticsearch) выдаёт ошибку
/usr/local/bin/docker-entrypoint.sh: line 49: /usr/share/elasticsearch/bin/elasticsearch-env-from-file: No such file or directory