Skip to content

Commit

Permalink
Migrate Docker V2
Browse files Browse the repository at this point in the history
  • Loading branch information
VGR6479 committed May 22, 2024
1 parent 2c4ce05 commit 5ac74da
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.9"
services:
nginx:
build: ./nginx
Expand Down
6 changes: 3 additions & 3 deletions restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ 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=============================="
echo "VIEWING GEROBUG LOG"
echo "=============================="

echo "(To Exit The Log Viewer, Use Ctrl + C)"
docker-compose logs -f
docker compose logs -f
4 changes: 2 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ echo -e "\n=============================="
echo "BUILDING GEROBUG"
echo "=============================="

docker-compose up --build --force-recreate -d
docker compose up --build --force-recreate -d


echo -e "\n=============================="
echo "VIEWING GEROBUG LOG"
echo "=============================="

echo "(To Exit The Log Viewer, Use Ctrl + C)"
docker-compose logs -f
docker compose logs -f
8 changes: 4 additions & 4 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -47,19 +47,19 @@ 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=============================="
echo "VIEWING GEROBUG LOG"
echo "=============================="

echo "(To Exit The Log Viewer, Use Ctrl + C)"
docker-compose logs -f
docker compose logs -f

0 comments on commit 5ac74da

Please sign in to comment.