From af48cfa99a4252b9d15ae087b00fbe38824f03b1 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Mon, 18 Dec 2023 18:06:09 -0500 Subject: [PATCH] Replace default creds and update instructions Signed-off-by: Derek Ho --- _includes/downloads/opensearch-docker.markdown | 9 +++++---- samples/docker-compose.yml | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/_includes/downloads/opensearch-docker.markdown b/_includes/downloads/opensearch-docker.markdown index ad75179633..9ef7b1851f 100644 --- a/_includes/downloads/opensearch-docker.markdown +++ b/_includes/downloads/opensearch-docker.markdown @@ -4,7 +4,8 @@ The best way to try out OpenSearch is to use [Docker Compose](https://docs.docke - **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](/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 -6. Login with the default username (`admin`) and password (`admin`) +3. Replace the admin password placeholder `< Admin password >` with your desired strong password +4. Run `docker-compose up` +5. Have a nice coffee while everything is downloading and starting up +6. Navigate to [http://localhost:5601/](http://localhost:5601) for OpenSearch Dashboards +7. Login with the default username (`admin`) and the password you passed in earlier (`< Admin password >`) diff --git a/samples/docker-compose.yml b/samples/docker-compose.yml index 9fa4a998b3..28abe11fff 100644 --- a/samples/docker-compose.yml +++ b/samples/docker-compose.yml @@ -12,6 +12,7 @@ services: - 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 + - "OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password >" # the initial admin password ulimits: memlock: soft: -1 @@ -36,6 +37,7 @@ services: - cluster.initial_cluster_manager_nodes=opensearch-node1,opensearch-node2 - bootstrap.memory_lock=true - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m" + - "OPENSEARCH_INITIAL_ADMIN_PASSWORD=< Admin password >" ulimits: memlock: soft: -1