···7COOLIFY_SOURCE_DIR="${COOLIFY_DIR}/source"
8SUDO=${SUDO:-"sudo"}
90000010# The main entrypoint to docker-compose pointing to Coolify's compose + dotenv files,
11# after handling those compose commands.
12main() {
···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 "$@"
34elif [[ $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 "$@"
39elif [[ $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 "$@"
44else
45 main "$@"
46-fi
···7COOLIFY_SOURCE_DIR="${COOLIFY_DIR}/source"
8SUDO=${SUDO:-"sudo"}
910+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.
17main() {
···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
39elif [[ $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
44elif [[ $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
49else
50 main "$@"
51+fi