Last active
May 3, 2024 15:55
-
-
Save satya164/595723b46edc726f0ee49157ef16c681 to your computer and use it in GitHub Desktop.
Export Docker Compose files on CasaOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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