1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/opensearch/docker-compose.yml

65 lines
1.7 KiB
YAML
Raw Normal View History

2022-06-13 10:19:52 +02:00
#
# https://opensearch.org/docs/latest/opensearch/install/docker/
#
version: "3.8"
services:
opensearch-node1:
image: opensearchproject/opensearch:2.0.0
container_name: opensearch-node1
ports:
- "9201:9200"
- "9601:9600"
volumes:
- ./data/node1:/usr/share/opensearch/data
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
opensearch-node2:
image: opensearchproject/opensearch:2.0.0
container_name: opensearch-node2
ports:
- "9202:9200"
- "9602:9600"
volumes:
- ./data/node2:/usr/share/opensearch/data
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch-node2
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.0.0
container_name: opensearch-dashboards
ports:
- "5601:5601"
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node1:9200","https://opensearch-node2:9200"]'
restart: unless-stopped