Skip to content

Instantly share code, notes, and snippets.

@wsoula
wsoula / gist:a4434233e5c63b0044236e026c1ffa1a
Created February 21, 2018 20:27
Run a 3 node consul cluster. Then, using the elasticsearch-consul-discovery plugin, create a 3 node elasticsearch cluster
docker-entrypoint.sh
```
#!/bin/bash
set -e
# Files created by Elasticsearch should always be group writable too
umask 0002
run_as_other_user_if_needed() {
if [[ "$(id -u)" == "0" ]]; then