Skip to content

Instantly share code, notes, and snippets.

View UltimateByte's full-sized avatar

LRob UltimateByte

View GitHub Profile
@UltimateByte
UltimateByte / update-docker-compose.sh
Last active December 1, 2025 00:09
Update all docker-compose
#!/bin/bash
# This script updates all of your docker compose images set in standard dir.
# Export paths for running into a cronjob
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
for dir in /opt/*/; do
if [ -f "${dir}docker-compose.yml" ]; then
compose="${dir}docker-compose.yml"
elif [ -f "${dir}docker-compose.yaml" ]; then