update docker compose ports

This commit is contained in:
Jose Luis
2016-12-01 16:25:56 -05:00
parent aa10e26fc9
commit f05b161bf1
5 changed files with 50 additions and 12 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until curl -XGET $host:9200; do
>&2 echo "Elastic is unavailable - sleeping"
sleep 1
done
>&2 echo "Elastic is up - executing command"
exec $cmd