exceptionless/Exceptionless

how to connection elasticsearch cluster in docker?

mswinner opened this issue · 7 comments

It uses an embedded single node Elasticsearch cluster and does not have backups. It is recommended that you create your own Elasticsearch cluster for production deployments of Exceptionless.

On Linux:

docker run --rm -it -p 5000:80
-v $(pwd)/esdata:/usr/share/elasticsearch/data
exceptionless/exceptionless:latest

with my Elasticsearch cluster?? how to write docker parameter?

thanks!

You'd need to set the Elasticsearch connection string with an env variable with the key EX_ConnectionStrings__Elasticsearch with a value of server=http://YOUR_SERVER_HERE:9200. Please note running this image will continue to run elasticsearch in the background even if it's not configured / doing anything.

how to set Elasticsearch usename password ?

docker run --rm -it -p 5000:80
-e “EX_ConnectionStrings__Elasticsearch: server=http://10.0.0.4:9200”
exceptionless/exceptionless:latest

is this right?

No, that is not a valid way to set environment variables. The key is EX_ConnectionStrings__Elasticsearch and value is server=http://10.0.0.4:9200 It would be something like this: EX_ConnectionStrings__Elasticsearch="server=http://10.0.0.4:9200". You can find this information in the docker docs. I'd also recommend checking the docs on setting the username/password: https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#access_using_credentials_in_the_url

Also, since you are using an external Elasticsearch instance you should use the exceptionless/app:latest image instead which just has the api and ui (and not Elasticsearch running inside the image).

docker run --rm -it -p 5000:80
-e “EX_ConnectionStrings__Elasticsearch="server=http://10.0.0.4:9200"”
exceptionless/app:latest

“”.....“”

oh no !!?

There is no reason to double quote this. Please refer to the docker docs for more information.