From 5ac74da3601beec93760c00c5094652b07a103b8 Mon Sep 17 00:00:00 2001 From: VGR6479 Date: Wed, 22 May 2024 22:49:10 +0700 Subject: [PATCH] Migrate Docker V2 --- docker-compose.yml | 1 - restart.sh | 6 +++--- run.sh | 4 ++-- update.sh | 8 ++++---- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fc58dc5..fedd9b3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3.9" services: nginx: build: ./nginx diff --git a/restart.sh b/restart.sh index 301636b..5fd5fc5 100755 --- a/restart.sh +++ b/restart.sh @@ -17,13 +17,13 @@ fi echo -e "\n==========================" echo "STOPPING CURRENT PROCESS" echo "==========================" -docker-compose down +docker compose down sleep 1 echo -e "\n==========================" echo "REBUILD UPDATES" echo "==========================" -docker-compose up --build --force-recreate -d +docker compose up --build --force-recreate -d sleep 1 echo -e "\n==============================" @@ -31,4 +31,4 @@ echo "VIEWING GEROBUG LOG" echo "==============================" echo "(To Exit The Log Viewer, Use Ctrl + C)" -docker-compose logs -f \ No newline at end of file +docker compose logs -f \ No newline at end of file diff --git a/run.sh b/run.sh index c4281f1..75c57ee 100755 --- a/run.sh +++ b/run.sh @@ -239,7 +239,7 @@ echo -e "\n==============================" echo "BUILDING GEROBUG" echo "==============================" -docker-compose up --build --force-recreate -d +docker compose up --build --force-recreate -d echo -e "\n==============================" @@ -247,4 +247,4 @@ echo "VIEWING GEROBUG LOG" echo "==============================" echo "(To Exit The Log Viewer, Use Ctrl + C)" -docker-compose logs -f +docker compose logs -f diff --git a/update.sh b/update.sh index 05dca85..ce74d47 100755 --- a/update.sh +++ b/update.sh @@ -25,7 +25,7 @@ sleep 3 echo -e "\n==========================" echo "BACKUP CURRENT FILES" echo "==========================" -GEROBUG_DASHBOARD=$(docker container ls | grep 'gerobug_dashboard' | awk '{print $1}') +GEROBUG_DASHBOARD=$(docker container ls | grep 'gerobug-dashboard' | awk '{print $1}') if [[ $GEROBUG_DASHBOARD == "" ]]; then echo "No running Gerobug container found, use run.sh instead." @@ -47,14 +47,14 @@ sleep 3 echo -e "\n==========================" echo "STOPPING CURRENT PROCESS" echo "==========================" -docker-compose down +docker compose down docker volume rm gerobug_static-content sleep 3 echo -e "\n==========================" echo "REBUILD UPDATES" echo "==========================" -docker-compose up --build --force-recreate -d +docker compose up --build --force-recreate -d sleep 3 echo -e "\n==============================" @@ -62,4 +62,4 @@ echo "VIEWING GEROBUG LOG" echo "==============================" echo "(To Exit The Log Viewer, Use Ctrl + C)" -docker-compose logs -f \ No newline at end of file +docker compose logs -f \ No newline at end of file