Skip to content

Commit

Permalink
Adding opensearch to global-docker-compose (#5)
Browse files Browse the repository at this point in the history
* Adding opensearch to global-docker-compose

* removed version bump and opensearch network from composer file

* use latest version 2 tag

* PR feedback
  • Loading branch information
chriskarlin authored Apr 17, 2023
1 parent 0cb814c commit 4dc11f7
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## UNRELEASED
- Added OpenSearch local image.

[0.7.1] - 2023-02-22
- Added Dynamo local image.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ Key|Service|Ports
`kafka`|Kafka with Lenses Box|<ul><li>9092 (Kafka broker)</li><li>8081 (Schema Registry)</li><li>3030 (Lenses)</li></ul>
`mailcatcher`|Mailcatcher|<ul><li>1025 (SMTP server)</li><li>1080 (UI)</li></ul>
`dynamodb`|DynamoDB|8000
`opensearch`|OpenSearch|<ul><li>9200</li><li>5601 (Dashboard)</li></ul>

### MySQL

Expand Down
35 changes: 35 additions & 0 deletions gdc/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,45 @@ services:
volumes:
- dynamodb-data:/home/dynamodblocal/data

# ---------- OpenSearch ----------
opensearch:
image: opensearchproject/opensearch:2
environment:
- cluster.name=opensearch-cluster # Name the cluster
- node.name=opensearch # Name the node that will run in this container
- discovery.seed_hosts=opensearch # Nodes to look for when discovering the cluster
- cluster.initial_cluster_manager_nodes=opensearch # Nodes eligibile to serve as cluster manager
- bootstrap.memory_lock=true # Disable JVM heap memory swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # Set min and max JVM heap sizes to at least 50% of system RAM
- "DISABLE_INSTALL_DEMO_CONFIG=true" # Prevents execution of bundled demo script which installs demo certificates and security configurations to OpenSearch
- "DISABLE_SECURITY_PLUGIN=true" # Disables security plugin
ulimits:
memlock:
soft: -1 # Set memlock to unlimited (no soft or hard limit)
hard: -1
nofile:
soft: 65536 # Maximum number of open files for the opensearch user - set to at least 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data # Creates volume called opensearch-data and mounts it to the container
ports:
- 9200:9200 # REST API
- 9600:9600 # Performance Analyzer

opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2
ports:
- 5601:5601 # Map host port 5601 to container port 5601
environment:
- 'OPENSEARCH_HOSTS=["http://opensearch:9200"]'
- "DISABLE_SECURITY_DASHBOARDS_PLUGIN=true" # disables security dashboards plugin in OpenSearch Dashboards


volumes:
mysql56-data:
mysql57-data:
mysql8-data:
redis-data:
redisinsight:
dynamodb-data:
opensearch-data:
3 changes: 3 additions & 0 deletions gdc/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func serviceString(compose ComposeInfo, command string) string {
if (service == "redis") {
results = append(results, "redisinsight")
}
if (service == "opensearch") {
results = append(results, "opensearch-dashboards")
}
}
return strings.Join(results, " ")
}
Expand Down

0 comments on commit 4dc11f7

Please sign in to comment.