NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix things on coolify-compose on how CLI flags are passed

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+9 -4
+9 -4
scripts/coolify-compose
··· 7 COOLIFY_SOURCE_DIR="${COOLIFY_DIR}/source" 8 SUDO=${SUDO:-"sudo"} 9 10 # The main entrypoint to docker-compose pointing to Coolify's compose + dotenv files, 11 # after handling those compose commands. 12 main() { ··· 30 # From the Coolify docs for manual installation steps, we always want to use these 31 # flags when bringing up. 32 # Docs: https://coolify.io/docs/get-started/installation#_7-start-coolify 33 - main up -d --remove-orphans --pull=always --force-recreate "$@" 34 elif [[ $1 == "down" ]]; then 35 # From the Coolify docs for uninstallation steps (the Compose way of tearing down 36 # containers), we always want to use these flags when bringing down. 37 # Docs: https://coolify.io/docs/get-started/uninstallation#_1-stop-and-remove-containers 38 - main down --timeout=0 "$@" 39 elif [[ $1 == "stop" ]]; then 40 # From the Coolify docs for uninstallation steps (the `docker stop` one), we 41 # always want to use these flags when stopping 42 # Docs: https://coolify.io/docs/get-started/uninstallation#_1-stop-and-remove-containers 43 - main stop --timeout=0 "$@" 44 else 45 main "$@" 46 - fi
··· 7 COOLIFY_SOURCE_DIR="${COOLIFY_DIR}/source" 8 SUDO=${SUDO:-"sudo"} 9 10 + 11 + if [[ $DEBUG != "" ]]; then 12 + set -x 13 + fi 14 + 15 # The main entrypoint to docker-compose pointing to Coolify's compose + dotenv files, 16 # after handling those compose commands. 17 main() { ··· 35 # From the Coolify docs for manual installation steps, we always want to use these 36 # flags when bringing up. 37 # Docs: https://coolify.io/docs/get-started/installation#_7-start-coolify 38 + main "$@" -d --remove-orphans --pull=always --force-recreate 39 elif [[ $1 == "down" ]]; then 40 # From the Coolify docs for uninstallation steps (the Compose way of tearing down 41 # containers), we always want to use these flags when bringing down. 42 # Docs: https://coolify.io/docs/get-started/uninstallation#_1-stop-and-remove-containers 43 + main "$@" --timeout=0 44 elif [[ $1 == "stop" ]]; then 45 # From the Coolify docs for uninstallation steps (the `docker stop` one), we 46 # always want to use these flags when stopping 47 # Docs: https://coolify.io/docs/get-started/uninstallation#_1-stop-and-remove-containers 48 + main "$@" --timeout=0 49 else 50 main "$@" 51 + fi