Skip to content

Commit 1ec9524

Browse files
adding clarification on quick start docs (#10722) (#10729)
1 parent 342f209 commit 1ec9524

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

_getting-started/quickstart.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,14 @@ This configuration enables security using demo certificates and requires additio
167167
```
168168
{% include copy.html %}
169169
170-
1. In your terminal application, navigate to the directory containing the `docker-compose.yml` file you downloaded, [set up a custom admin password]({{site.url}}{{site.baseurl}}/install-and-configure/install-opensearch/docker/#setting-a-custom-admin-password), and run the following command to create and start the cluster as a background process:
170+
1. First, create a custom admin password. Create (or edit) a `.env` file in the same directory as your `docker-compose.yml` file. This file stores environment variables that Docker Compose automatically reads when starting the containers. Add the following line to define the admin password:
171+
172+
```bash
173+
OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom-admin-password>
174+
```
175+
{% include copy.html %}
176+
177+
1. In your terminal application, navigate to the directory containing the `docker-compose.yml` file you downloaded and run the following command to create and start the cluster as a background process:
171178
172179
```bash
173180
docker compose up -d

0 commit comments

Comments
 (0)