Files
backup/docker-restart.sh

11 lines
238 B
Bash

#!/bin/bash
# Restart all stacks / services located in '/etc/komodo/stacks'.
stackdir="/etc/komodo/stacks"
dirs=($(find "$stackdir" -maxdepth 1 -mindepth 1 -type d))
for dir in "${dirs[@]}"; do
cd "$dir" && docker compose up -d
done