Sign inSign up

alexandretoyer/opensearchserver

By alexandretoyer

•Updated almost 11 years ago

Opensearchserver on Debian

Image
5

10K+

alexandretoyer/opensearchserver repository overview

Full documentation at https://github.com/AlexandreToyer/opensearchserver-docker⁠

⁠Run a container

/path/to/local/folder must be a directory that must contains directories opensearchserver/data. It will be used as the data folder by OpenSearchServer.

docker run -d -P -v </path/to/local/folder>:/srv alexandretoyer/opensearchserver
  • parameter -d tells docker to daemonize this container (run in background)
  • parameter -P tells docker to map ports exposed in the container
  • parameter -v is used to map a local folder to the /srv folder inside the container
⁠Configure memory

Variable MEMORY can be used to configure memory to allow to OpenSearchServer.

Value can be expressed with unit k, m or g.

docker run -d -P -v </path/to/local/folder>:/srv -e MEMORY=4g alexandretoyer/opensearchserver
⁠Get port used by Docker
docker ps -l

Here is an output example:

CONTAINER ID        IMAGE                                    COMMAND                CREATED             STATUS              PORTS                     NAMES
3b49cb1c7fed        alexandretoyer/opensearchserver:latest   /bin/sh -c '/start_o   23 minutes ago      Up 23 minutes       0.0.0.0:49185->9090/tcp   backstabbing_mayer

Column PORTS gives us the port to use. In this example it's 49185.

⁠Open browser to access OpenSearchServer

Browse to 127.0.0.1:<port used by docker>, for example 127.0.0.1:49185.

Tag summary

Content type

Image

Digest

sha256:f9f83ee09…

Size

546.7 MB

Last updated

almost 11 years ago

docker pull alexandretoyer/opensearchserver