Skip to content

Instantly share code, notes, and snippets.

@arypurnomoz
Last active December 20, 2016 07:44
Show Gist options
  • Save arypurnomoz/8d24155f024f8d4b6bee6b053c6e47d9 to your computer and use it in GitHub Desktop.
Save arypurnomoz/8d24155f024f8d4b6bee6b053c6e47d9 to your computer and use it in GitHub Desktop.
running es 5.0.0 on docker workaround
apt-get update && apt-get install -y nginx;
echo '
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
server {
listen 9200;
location / {
proxy_pass http://127.0.0.1:9201;
}
}
}
' > /etc/nginx/nginx.conf;
nginx;
exec gosu elasticsearch elasticsearch -E network.host=localhost -E http.port=9201;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment