Skip to content

Commit

Permalink
Merge pull request #992 from Yury-Fridlyand/update-docker-compose
Browse files Browse the repository at this point in the history
Update `docker-compose.yml`
  • Loading branch information
peterzhuamazon authored Sep 14, 2022
2 parents 0e6f934 + fa0642d commit 51e639a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _includes/downloads/opensearch-docker.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The best way to try out OpenSearch is to use [Docker Compose](https://docs.docke
1. Set up your Docker host environment
- **macOS & Windows**: In Docker _Preferences_ > _Resources_, set RAM to at least 4 GB.
- **Linux**: Ensure `vm.max_map_count` is set to at least 262144 as per the [documentation](/docs/opensearch/install/important-settings/).
2. Download [docker-compose.yml](https://opensearch.org/samples/docker-compose.yml) into your desired directory
2. Download [docker-compose.yml](/samples/docker-compose.yml) into your desired directory
3. Run `docker-compose up`
4. Have a nice coffee while everything is downloading and starting up
5. Navigate to [http://localhost:5601/](http://localhost:5601) for OpenSearch Dashboards
Expand Down
4 changes: 2 additions & 2 deletions samples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- cluster.name=opensearch-cluster
- node.name=opensearch-node1
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
Expand All @@ -33,7 +33,7 @@ services:
- cluster.name=opensearch-cluster
- node.name=opensearch-node2
- discovery.seed_hosts=opensearch-node1,opensearch-node2
- cluster.initial_master_nodes=opensearch-node1,opensearch-node2
- cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
Expand Down

0 comments on commit 51e639a

Please sign in to comment.