version: '3.3'
services:
es001:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
environment:
- node.name=es001
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es002,es003
- cluster.initial_master_nodes=es001,es002,es003
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
volumes:
- data01:/usr/share/elasticsearch/data
networks:
- elastic
es002:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
environment:
- node.name=es002
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es001,es003
- cluster.initial_master_nodes=es001,es002,es003
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- data02:/usr/share/elasticsearch/data
networks:
- elastic
es003:
image: docker.elastic.co/elasticsearch/elasticsearch:7.7.1
environment:
- node.name=es003
- cluster.name=es-docker-cluster
- discovery.seed_hosts=es001,es002
- cluster.initial_master_nodes=es001,es002,es003
- bootstrap.memory_lock=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- data03:/usr/share/elasticsearch/data
networks:
- elastic
volumes:
data01:
driver: local
data02:
driver: local
data03:
driver: local
networks:
elastic:
driver: overlay
Запускаю локально (Все работает, кластер собирается)
docker-compose up
Запускаю в docker swarm (Не работает, приложил лог одного из контейнеров)
docker stack deploy -c docker-compose.yml test
Подскажите пожалуйста, в чем ошибка
Лог одного из контейнеров: