kibana should be executed with exec to give it pid 1 and bind signal forwarding with the container instance
11 lines
238 B
Bash
11 lines
238 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Wait for the Elasticsearch container to be ready before starting Kibana.
|
|
echo "Stalling for Elasticsearch"
|
|
while true; do
|
|
nc -q 1 elasticsearch 9200 2>/dev/null && break
|
|
done
|
|
|
|
echo "Starting Kibana"
|
|
exec kibana
|