theocorp_docker_compose/olivetin/config.yaml
Gaxinto Theodorio c26e8968ef
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
changes
2025-05-06 22:43:32 -04:00

26 lines
921 B
YAML

actions:
- title: backup containers
shell: "docker run --rm -d --privileged -v /home/geezo/docker_containers/autorestic:/data -v /var/run/docker.sock:/var/run/docker.sock cupcakearmy/autorestic autorestic backup -va -c /data/config.yaml"
icon: <iconify-icon icon="lets-icons:save-duotone" width="48" height="24"></iconify-icon>
execOnCron:
- "@daily"
- title: deploy all containers
shell: |
cd /docker_containers
while IFS= read -r dir; do
if [ -f "${dir}/docker-compose.yml" ] || [ -f "${dir}/docker-compose.yaml" ]; then
echo "Processing directory: ${dir}"
cd "${dir}"
docker compose up -d
cd ..
else
echo "Warning: No docker-compose file found in ${dir}"
fi
done < service_order.txt
icon: <iconify-icon icon="mdi:docker" width="48" height="24"></iconify-icon>
execOnCron:
- "@daily"