No description
Find a file
2025-12-08 21:45:14 +00:00
calibre first commit 2025-12-08 22:22:55 +01:00
gatus first commit 2025-12-08 22:22:55 +01:00
home-assistant first commit 2025-12-08 22:22:55 +01:00
homepage Update homepage/compose.yaml 2025-12-08 21:40:25 +00:00
media first commit 2025-12-08 22:22:55 +01:00
nextcloud Update nextcloud/compose.yaml 2025-12-08 21:44:40 +00:00
ntfy Update ntfy/compose.yaml 2025-12-08 21:44:26 +00:00
paperless-ngx first commit 2025-12-08 22:22:55 +01:00
pihole first commit 2025-12-08 22:22:55 +01:00
tandoor Update tandoor/compose.yaml 2025-12-08 21:45:14 +00:00
vaultwarden first commit 2025-12-08 22:22:55 +01:00
README.md Update README.md 2025-12-08 21:26:20 +00:00

Archive

Some of my compose.yaml's after migrating to kubernetes.

Update script

Create the file container-update.sh and set execute rights.

#!/usr/bin/env bash

set -e

for compose_file in /opt/docker/**/docker-compose.yml; do
  if [[ $(docker compose -f "$compose_file" ps -q) ]]; then
    echo "> Updating $compose_file"
    docker compose -f "$compose_file" pull
    docker compose -f "$compose_file" up -d --remove-orphans
    echo ""
  else
    echo "> Skipping $compose_file as it's not running."
    echo ""
  fi
done

echo "> Containers have been updated."
echo ""

confirm=n
read -p "> Do you want to remove all dangling images? [y/N]" confirm
echo ""

if [[ $confirm == [yY] ]]; then
  docker image prune -f -a
  echo "> All dangling images have been removed."
else
  echo "> Dangling images haven't been removed."
fi

exit