All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 8s
17 lines
581 B
Bash
Executable File
17 lines
581 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
|
|
GRAYLOG_ROOT_PASSWORD_SHA2=$(echo -n "${GRAYLOG_ROOT_PASSWORD}" | sha256sum | cut -d' ' -f1)
|
|
export GRAYLOG_ROOT_PASSWORD_SHA2
|
|
|
|
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}"
|