Installing OpenSearch with Docker Compose on Debian with myVesta

Post Reply
User avatar
isscbta
Team Member
Posts: 154
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 18 times
Been thanked: 3 times

Here is a quick guide to install OpenSearch with Docker Compose:

If you need to install docker first, check - viewtopic.php?f=35&t=772

Code: Select all

# download the official docker-compose file
wget https://raw.githubusercontent.com/opensearch-project/opensearch-build/refs/heads/main/docker/release/dockercomposefiles/docker-compose-2.x.yml

mv docker-compose-2.x.yml docker-compose.yml

edit the file

mcedit docker-compose.yml
To avoid conflicts with ElasticSearch default ports, change the following block:

Code: Select all

ports:

9200:9200

9600:9600 # required for Performance Analyzer
into:

Code: Select all

ports:

9202:9200

9602:9600 # required for Performance Analyzer
Now set an initial admin password (use your own random one):

Code: Select all

export OPENSEARCH_INITIAL_ADMIN_PASSWORD='some_password'
Run it:

Code: Select all

docker-compose up
(Press CTRL+C if everything looks OK.)

Then start it again in the background:

Code: Select all

docker-compose up -d
Post Reply