Skip to content

Commit

Permalink
FIX - use compose new command removed old docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
MRColorR committed Oct 31, 2023
1 parent 693244f commit 2dff9c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions runme.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ function fn_startStack() {
colorprint "YELLOW" "This menu item will launch all the apps using the configured ${ENV_FILENAME} file and the $($script:DKCOM_FILENAME) file (Docker must be already installed and running)"
$yn = Read-Host "Do you wish to proceed Y/N?"
if ($yn.ToLower() -eq 'y' -or $yn.ToLower() -eq 'yes') {
if (docker-compose -f ${DKCOM_FILENAME} --env-file ${ENV_FILENAME} up -d) {
if (docker compose -f ${DKCOM_FILENAME} --env-file ${ENV_FILENAME} up -d) {
print_and_log "Green" "All Apps started"
print_and_log "Cyan" "You can visit the web dashboard on ${DASHBOARD_URL}"
$DASHBOARD_URL | Out-File -Append "dashboardURL.txt"
Expand Down Expand Up @@ -1368,7 +1368,7 @@ function fn_stopStack() {
$yn = Read-Host "Do you wish to proceed Y/N?"

if ($yn.ToLower() -eq 'y' -or $yn.ToLower() -eq 'yes') {
if (docker-compose -f $DKCOM_FILENAME down) {
if (docker compose -f $DKCOM_FILENAME down) {
colorprint "GREEN" "All Apps stopped and stack deleted."
}
else {
Expand Down
4 changes: 2 additions & 2 deletions runme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,7 @@ fn_startStack(){
read -r -p "Do you wish to proceed Y/N? " yn
case $yn in
[Yy]* )
if sudo docker-compose -f ${DKCOM_FILENAME} --env-file ${ENV_FILENAME} up -d; then
if sudo docker compose -f ${DKCOM_FILENAME} --env-file ${ENV_FILENAME} up -d; then
print_and_log "GREEN" "All Apps started."
print_and_log "CYAN" "You can visit the web dashboard on ${DASHBOARD_URL}"
echo "${DASHBOARD_URL}" > "dashboardURL.txt"
Expand Down Expand Up @@ -1223,7 +1223,7 @@ fn_stopStack(){
read -r -p "Do you wish to proceed Y/N? " yn
case $yn in
[Yy]* )
if sudo docker-compose -f $DKCOM_FILENAME down; then
if sudo docker compose -f $DKCOM_FILENAME down; then
print_and_log "GREEN" "All Apps stopped and stack deleted."
else
errorprint_and_log "Error stopping and deleting Docker stack. Please check the configuration and try again."
Expand Down

0 comments on commit 2dff9c0

Please sign in to comment.