docs: Add 1 and update 4 files
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 38s

This commit is contained in:
Your Name
2025-09-20 10:11:14 +12:00
parent 70585358b8
commit fb02cbd0e8
5 changed files with 66 additions and 9 deletions

View File

@@ -63,12 +63,35 @@ sleep 10
# Check status
bash ./status.sh || _die "Services failed to start properly"
# Create custom user
echo "Setting up custom user..."
docker exec ${CONTAINER_NAME}_elasticsearch bash -c "
until curl -s -u elastic:${ELASTIC_PASSWORD} http://localhost:9200/_cluster/health | grep -q '\"status\":\"yellow\"\|\"status\":\"green\"'; do
sleep 2
done
curl -X POST -u elastic:${ELASTIC_PASSWORD} \
-H 'Content-Type: application/json' \
http://localhost:9200/_security/user/${KIBANA_USERNAME:-admin} \
-d '{
\"password\" : \"${KIBANA_USER_PASSWORD:-changeme}\",
\"roles\" : [ \"superuser\" ],
\"full_name\" : \"Admin User\"
}' 2>/dev/null || true
"
echo "Installation of ${CONTAINER_NAME} complete"
echo ""
echo "========================================="
echo "Kibana UI: ${SERVER_PUBLICBASEURL:-http://$(hostname -I | awk '{print $1}'):${KIBANA_PORT}}"
echo "Username: elastic"
echo "Password: ${ELASTIC_PASSWORD:-changeme}"
echo ""
echo "Login with your custom user:"
echo " Username: ${KIBANA_USERNAME:-admin}"
echo " Password: ${KIBANA_USER_PASSWORD:-changeme}"
echo ""
echo "Or the superuser:"
echo " Username: elastic"
echo " Password: ${ELASTIC_PASSWORD:-changeme}"
echo "========================================="
echo ""
echo "IMPORTANT: Update service.env with:"