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
Code: Select all
ports:
9200:9200
9600:9600 # required for Performance Analyzer
Code: Select all
ports:
9202:9200
9602:9600 # required for Performance Analyzer
Code: Select all
export OPENSEARCH_INITIAL_ADMIN_PASSWORD='some_password'
Code: Select all
docker-compose up
Then start it again in the background:
Code: Select all
docker-compose up -d