Sign inSign up

nyanit/elasticsearch

By nyanit

•Updated about 5 years ago

elasticsearch for stackos

Image
0

125

nyanit/elasticsearch repository overview

⁠Setup info

For use with: https://app.stackos.io/⁠

Based on: https://hub.docker.com/_/elasticsearch⁠

To run:

Application Name: Anything you want

Image Name:

nyanit/elasticsearch:7.14.1stackos

Container Port:

9200

Service Access Port:

9200

Environment:

PERSIST_PATH = /pdata
discovery.type=single-node

CPU Allocation (Millicores): 500 or more

500

Memory Allocation (MB):

1024

Data Persistence:

Check On

Mount Volume:

/pdata

Storage (GB): As much as you need

5

⁠Test your deploy

curl https://es-0xYOURADDRESS-titan.stackos.io⁠

curl -XPOST https://es-0xYOURADDRESS-titan.stackos.io/demo/_doc⁠ -d '{"hello": "world"}' -H "Content-Type: application/json" {"_index":"demo","_type":"1","_id":"NybcrHsBMAlBIhoOhvga","_version":1,"result":"created","_shards":{"total":2,"successful":1,"failed":0},"_seq_no":0,"_primary_term":1}

⁠Test search (using _id from above)

curl -XPOST https://es-0xYOURADDRESS-titan.stackos.io/demo/_doc/NybcrHsBMAlBIhoOhvga⁠ {"_index":"demo","_type":"_doc","_id":"NybcrHsBMAlBIhoOhvga","_version":1,"_seq_no":0,"_primary_term":1,"found":true,"_source":{"hello": "world"}}

⁠Security Info

Until your Elasticsearch node is fully secured, consider NOT exposing it to the internet. Instead, just make it available internally to your application servers only.

Basic security is possible using BASIC auth, but that's only possible with TLS transport:

Add this to your environment:

xpack.security.enabled="true"
ELASTICSEARCH_USERNAME=username
ELASTICSEARCH_PASSWORD=password
xpack.security.transport.ssl.enable="true"

But you'll also need to set up the certificates, so read into it here: https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls.html⁠

Tag summary

Content type

Image

Digest

Size

489.2 MB

Last updated

about 5 years ago

docker pull nyanit/elasticsearch:7.14.1stackos