Skip to content

Instantly share code, notes, and snippets.

@satya164
Last active May 3, 2024 15:55
Show Gist options
  • Save satya164/595723b46edc726f0ee49157ef16c681 to your computer and use it in GitHub Desktop.
Save satya164/595723b46edc726f0ee49157ef16c681 to your computer and use it in GitHub Desktop.
Export Docker Compose files on CasaOS
#!/bin/bash
# This script export all docker compose files installed via CasaOS store
mkdir -p docker-compose
appids=$(casaos-cli app-management list apps | tail -n +3 | cut -d' ' -f1)
for id in $appids
do
casaos-cli app-management show local $id --yaml > docker-compose/${id}.yml
done
#!/bin/bash
for file in docker-compose/*.yml
do
casaos-cli app-management install -f $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment