🚧 WIP
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
# Stops the mqtt-ingester stack.
|
||||
#
|
||||
# Stops and removes containers and the default network. Volumes
|
||||
# (timescale-data, mqtt-logs, loki-data) are preserved; use prune.sh to
|
||||
# remove them.
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/stop.sh [profiles...]
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
StackRoot="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$StackRoot"
|
||||
|
||||
Profiles="${*:-}"
|
||||
|
||||
ComposeArgs=(compose down --remove-orphans)
|
||||
if [ -n "$Profiles" ]; then
|
||||
ComposeArgs+=(--profile "$Profiles")
|
||||
fi
|
||||
|
||||
echo "Stopping stack..."
|
||||
docker "${ComposeArgs[@]}"
|
||||
Reference in New Issue
Block a user