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