diff --git a/.env.sample b/.env.sample index 880f534..4afa6b4 100644 --- a/.env.sample +++ b/.env.sample @@ -1,6 +1,8 @@ # Internal settings (they will not be passed to running services) CHECK_FOR_OUTDATED_CONFIG=true +DOCKER_COMPOSE_BINARY="docker compose" # or "docker-compose" + # General Traefik (reverse proxy) settings TRAEFIK_DOMAIN=mydomain.com ACME_MAIL=my-email@my-provider.com diff --git a/run-seedbox.sh b/run-seedbox.sh index bd35040..96bb827 100755 --- a/run-seedbox.sh +++ b/run-seedbox.sh @@ -57,6 +57,7 @@ export COMPOSE_HTTP_TIMEOUT=240 [[ -z $HOST_CONFIG_PATH ]] && export HOST_CONFIG_PATH="/data/config" [[ -z $HOST_MEDIA_PATH ]] && export HOST_MEDIA_PATH="/data/torrents" [[ -z $DOWNLOAD_SUBFOLDER ]] && export DOWNLOAD_SUBFOLDER="deluge" +[[ -z $DOCKER_COMPOSE_BINARY ]] && export DOCKER_COMPOSE_BINARY="docker-compose" if [[ ! -f config.yaml ]]; then echo "[$0] No config.yaml file found. Copying from sample file..." @@ -280,11 +281,11 @@ echo "[$0] ***** Config OK. Launching services... *****" if [[ "${SKIP_PULL}" != "1" ]]; then echo "[$0] ***** Pulling all images... *****" - docker-compose ${ALL_SERVICES} pull + ${DOCKER_COMPOSE_BINARY} ${ALL_SERVICES} pull fi echo "[$0] ***** Recreating containers if required... *****" -docker-compose ${ALL_SERVICES} up -d --remove-orphans +${DOCKER_COMPOSE_BINARY} ${ALL_SERVICES} up -d --remove-orphans echo "[$0] ***** Done updating containers *****" echo "[$0] ***** Clean unused images and volumes... *****"