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

72 lines
1.9 KiB
YAML
Raw Normal View History

2022-06-13 10:19:52 +02:00
#
2024-08-30 11:27:17 +02:00
# https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
2022-06-13 10:19:52 +02:00
#
version: "3.8"
services:
opensearch-node1:
2024-08-30 11:27:17 +02:00
image: opensearchproject/opensearch:2
2022-06-13 10:19:52 +02:00
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
2024-08-30 12:11:45 +02:00
- DISABLE_SECURITY_PLUGIN=true
2022-06-13 10:19:52 +02:00
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
2024-08-30 11:27:17 +02:00
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
2022-06-13 10:19:52 +02:00
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
opensearch-node2:
2024-08-30 11:27:17 +02:00
image: opensearchproject/opensearch:2
2022-06-13 10:19:52 +02:00
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
2024-08-30 12:11:45 +02:00
- DISABLE_SECURITY_PLUGIN=true
2022-06-13 10:19:52 +02:00
- OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m
2024-08-30 11:27:17 +02:00
- OPENSEARCH_INITIAL_ADMIN_PASSWORD=admin
2022-06-13 10:19:52 +02:00
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
restart: unless-stopped
opensearch-dashboards:
2024-08-30 11:27:17 +02:00
image: opensearchproject/opensearch-dashboards:2
2022-06-13 10:19:52 +02:00
container_name: opensearch-dashboards
ports:
- "5601:5601"
environment:
2024-08-30 12:11:45 +02:00
OPENSEARCH_HOSTS: '["http://opensearch-node1:9200","http://opensearch-node2:9200"]'
2024-08-30 11:27:17 +02:00
depends_on:
- opensearch-node1
- opensearch-node2
2022-06-13 10:19:52 +02:00
restart: unless-stopped