Files
dropshell-templates/graylog/start.sh
j 70dab12114
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 9s
docs: Add 16, update 2 and remove 2 files
2026-01-26 21:17:15 +13:00

16 lines
554 B
Bash
Executable File

#!/bin/bash
source "${AGENT_PATH}/common.sh"
_check_required_env_vars "CONTAINER_NAME" "GRAYLOG_ROOT_PASSWORD"
# START SCRIPT
# The start script is required for all templates.
# It is used to start the service on the server.
# Convert plain text password to SHA256 for Graylog
export GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
docker compose -p "${CONTAINER_NAME}" up -d || _die "Failed to start Graylog stack"
echo "Graylog stack started"
echo "Access Graylog at http://localhost:${WEB_PORT:-9000}"